]> the.earth.li Git - onak.git/commitdiff
Open DB read only for onak lookup function
authorJonathan McDowell <noodles@earth.li>
Tue, 2 Jun 2009 10:19:01 +0000 (11:19 +0100)
committerJonathan McDowell <noodles@earth.li>
Tue, 2 Jun 2009 10:19:01 +0000 (11:19 +0100)
  No need to open read/write when we're only doing a search.

lookup.c

index a7d9c7c4f1c7dc8baecc74446e39dfb855ef84a7..e670d498f0a38189d9fb347254f3a6d1f5fa5023 100644 (file)
--- 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) {