forked from lix-project/lix
* Turn on read-only mode in queries. This prevents redundant store I/O.
This commit is contained in:
parent
c7bea941b0
commit
f09618b63a
|
@ -516,6 +516,8 @@ static void opQuery(Globals & globals,
|
||||||
|
|
||||||
enum { sInstalled, sAvailable } source = sInstalled;
|
enum { sInstalled, sAvailable } source = sInstalled;
|
||||||
|
|
||||||
|
readOnlyMode = true; /* makes evaluation a bit faster */
|
||||||
|
|
||||||
for (Strings::iterator i = opFlags.begin();
|
for (Strings::iterator i = opFlags.begin();
|
||||||
i != opFlags.end(); ++i)
|
i != opFlags.end(); ++i)
|
||||||
if (*i == "--status" || *i == "-s") printStatus = true;
|
if (*i == "--status" || *i == "-s") printStatus = true;
|
||||||
|
|
Loading…
Reference in a new issue