about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2008-11-19T16·26+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2008-11-19T16·26+0000
commit5d250ad1eae704106c7030ab984c929d7aef8f8f (patch)
treef9cae74bc5fca61ef97f50c76971b36701f0f361 /src
parent7509d70f9ddec7d28911e6b6f2145bc50a923e9f (diff)
* nix-store --dump-db: be more streamy.
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);
+    }
 }