* nix-store --dump-db: be more streamy.

This commit is contained in:
Eelco Dolstra 2008-11-19 16:26:34 +00:00
parent 7509d70f9d
commit 5d250ad1ea

View file

@ -417,9 +417,9 @@ static void opDumpDB(Strings opFlags, Strings opArgs)
if (!opArgs.empty()) if (!opArgs.empty())
throw UsageError("no arguments expected"); throw UsageError("no arguments expected");
PathSet validPaths = store->queryValidPaths(); PathSet validPaths = store->queryValidPaths();
/* !!! this isn't streamy; makeValidityRegistration() builds a foreach (PathSet::iterator, i, validPaths) {
potentially gigantic string. */ cout << makeValidityRegistration(singleton<PathSet>(*i), true, true);
cout << makeValidityRegistration(validPaths, true, true); }
} }