libstore: drop retries from LocalStore::cacheDrvOutputMapping

retries must happen outside of the state lock lifetime, otherwise
retries may keep transactions alive that should have been killed.

Change-Id: I9088975283aac9fc4521aa2f0bd000335740f6c7
This commit is contained in:
eldritch horrors
2025-01-20 20:00:22 +00:00
parent ba728e46be
commit fcc151d789
+5 -7
View File
@@ -818,13 +818,11 @@ void LocalStore::cacheDrvOutputMapping(
const std::string & outputName,
const StorePath & output)
{
retrySQLite([&]() {
state.stmts->AddDerivationOutput.use()
(deriver)
(outputName)
(printStorePath(output))
.exec();
});
state.stmts->AddDerivationOutput.use()
(deriver)
(outputName)
(printStorePath(output))
.exec();
}