about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/libstore/store.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/store.cc b/src/libstore/store.cc
index 7e397bebf52a..14a3ff6cba46 100644
--- a/src/libstore/store.cc
+++ b/src/libstore/store.cc
@@ -270,7 +270,7 @@ void setReferences(const Transaction & txn, const Path & storePath,
             % storePath);
 
     Paths oldReferences;
-    nixDB.queryStrings(noTxn, dbReferences, storePath, oldReferences);
+    nixDB.queryStrings(txn, dbReferences, storePath, oldReferences);
     
     nixDB.setStrings(txn, dbReferences, storePath,
         Paths(references.begin(), references.end()));