From 462dec4bd97b03dcb90e7b73eff3c7c6fe05a386 Mon Sep 17 00:00:00 2001 From: Jonathan McDowell Date: Tue, 2 Jun 2009 11:19:01 +0100 Subject: [PATCH] Open DB read only for onak lookup function No need to open read/write when we're only doing a search. --- lookup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.39.5