From: Jonathan McDowell Date: Tue, 2 Jun 2009 10:19:01 +0000 (+0100) Subject: Open DB read only for onak lookup function X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/commitdiff_plain/462dec4bd97b03dcb90e7b73eff3c7c6fe05a386?ds=inline Open DB read only for onak lookup function No need to open read/write when we're only doing a search. --- diff --git a/lookup.c b/lookup.c index a7d9c7c..e670d49 100644 --- a/lookup.c +++ b/lookup.c @@ -160,7 +160,7 @@ int main(int argc, char *argv[]) readconfig(NULL); initlogthing("lookup", config.logfile); catchsignals(); - config.dbbackend->initdb(true); + config.dbbackend->initdb(false); switch (op) { case OP_GET: if (ishex) {