projects
/
idzebra-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
184ccc4
)
Fix bug 154: Option -n does not disable shadow as it should.
author
Adam Dickmeiss
<adam@indexdata.dk>
Sun, 26 Sep 2004 20:38:50 +0000
(20:38 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Sun, 26 Sep 2004 20:38:50 +0000
(20:38 +0000)
index/main.c
patch
|
blob
|
history
diff --git
a/index/main.c
b/index/main.c
index
83a4c7b
..
8a1dac4
100644
(file)
--- a/
index/main.c
+++ b/
index/main.c
@@
-1,4
+1,4
@@
-/* $Id: main.c,v 1.113 2004-08-25 09:23:36 adam Exp $
+/* $Id: main.c,v 1.114 2004-09-26 20:38:50 adam Exp $
Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004
Index Data Aps
Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004
Index Data Aps
@@
-55,7
+55,7
@@
int main (int argc, char **argv)
char *arg;
char *configName = 0;
int nsections = 0;
char *arg;
char *configName = 0;
int nsections = 0;
- int disableCommit = 0;
+ int enable_commit = 1;
char *database = "Default";
Res res = res_open(0, 0, 0);
char *database = "Default";
Res res = res_open(0, 0, 0);
@@
-129,8
+129,7
@@
int main (int argc, char **argv)
exit (1);
}
zh = zebra_open (zs);
exit (1);
}
zh = zebra_open (zs);
- if (disableCommit)
- zebra_shadow_enable (zh, 0);
+ zebra_shadow_enable (zh, enable_commit);
}
if (zebra_select_database (zh, database))
}
if (zebra_select_database (zh, database))
@@
-264,7
+263,7
@@
int main (int argc, char **argv)
else if (ret == 't')
res_set(res, "recordType", arg);
else if (ret == 'n')
else if (ret == 't')
res_set(res, "recordType", arg);
else if (ret == 'n')
- res_set(res, "disableCommit", "1");
+ enable_commit = 0;
else if (ret == 'L')
res_set(res, "followLinks", "0");
else
else if (ret == 'L')
res_set(res, "followLinks", "0");
else