about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nix-store/nix-store.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nix-store/nix-store.cc b/src/nix-store/nix-store.cc
index 481e26cdbb17..63635b52d3f1 100644
--- a/src/nix-store/nix-store.cc
+++ b/src/nix-store/nix-store.cc
@@ -417,9 +417,9 @@ static void opDumpDB(Strings opFlags, Strings opArgs)
     if (!opArgs.empty())
         throw UsageError("no arguments expected");
     PathSet validPaths = store->queryValidPaths();
-    /* !!! this isn't streamy; makeValidityRegistration() builds a
-       potentially gigantic string. */
-    cout << makeValidityRegistration(validPaths, true, true);
+    foreach (PathSet::iterator, i, validPaths) {
+        cout << makeValidityRegistration(singleton<PathSet>(*i), true, true);
+    }
 }