From 2759c91b4c608f77e1524cef4de033d2253b7ee0 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Wed, 30 Nov 2011 12:01:08 +0200 Subject: [PATCH] Enable fast-import mode for headers from rpmdb - Assume our home turf is safe enough for this - in order to reach the rpmdb, headers must've gone through the more rigorous checking that's done through the rpmReadPackageFile() paths, plus in default configuration we'll be doing further verification on the header before loading the headers so the risk seems acceptable for the speed gain. --- lib/rpmdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rpmdb.c b/lib/rpmdb.c index 0a87741..5e2c9de 100644 --- a/lib/rpmdb.c +++ b/lib/rpmdb.c @@ -1737,7 +1737,7 @@ Header rpmdbNextIterator(rpmdbMatchIterator mi) void * keyp; size_t keylen; int rc; - headerImportFlags importFlags = 0; + headerImportFlags importFlags = HEADERIMPORT_FAST; if (mi == NULL) return NULL; -- 2.7.4