forked from lix-project/lix
* Fix deadlock.
This commit is contained in:
parent
c60a4943ba
commit
8a3eef22e3
|
@ -270,7 +270,7 @@ void setReferences(const Transaction & txn, const Path & storePath,
|
||||||
% storePath);
|
% storePath);
|
||||||
|
|
||||||
Paths oldReferences;
|
Paths oldReferences;
|
||||||
nixDB.queryStrings(noTxn, dbReferences, storePath, oldReferences);
|
nixDB.queryStrings(txn, dbReferences, storePath, oldReferences);
|
||||||
|
|
||||||
nixDB.setStrings(txn, dbReferences, storePath,
|
nixDB.setStrings(txn, dbReferences, storePath,
|
||||||
Paths(references.begin(), references.end()));
|
Paths(references.begin(), references.end()));
|
||||||
|
|
Loading…
Reference in a new issue