diff --git a/src/nix-store/nix-store.cc b/src/nix-store/nix-store.cc index 481e26cdbb..63635b52d3 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); + } }