projects
/
onak.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61b6fcf
)
Open DB read only for onak lookup function
author
Jonathan McDowell
<noodles@earth.li>
Tue, 2 Jun 2009 10:19:01 +0000
(11:19 +0100)
committer
Jonathan 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
patch
|
blob
|
history
diff --git
a/lookup.c
b/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(
tru
e);
+ config.dbbackend->initdb(
fals
e);
switch (op) {
case OP_GET:
if (ishex) {