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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user