From 5d250ad1eae704106c7030ab984c929d7aef8f8f Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 19 Nov 2008 16:26:34 +0000 Subject: [PATCH] * nix-store --dump-db: be more streamy. --- src/nix-store/nix-store.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/nix-store/nix-store.cc b/src/nix-store/nix-store.cc index 481e26cdb..63635b52d 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(*i), true, true); + } }