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:
58f263c
)
Don't reset reg state if register can not be opened
author
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 31 Oct 2011 14:17:09 +0000
(15:17 +0100)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 31 Oct 2011 14:17:09 +0000
(15:17 +0100)
If zebra_register_open fails, do not set state back to 'o', since
it may be dirty (half transaction).
index/zebraapi.c
patch
|
blob
|
history
diff --git
a/index/zebraapi.c
b/index/zebraapi.c
index
1c30eaa
..
6415172
100644
(file)
--- a/
index/zebraapi.c
+++ b/
index/zebraapi.c
@@
-1816,8
+1816,6
@@
ZEBRA_RES zebra_begin_trans(ZebraHandle zh, int rw)
zh->reg->seqno = seqno;
else
{
- zebra_set_state(zh, 'o', seqno);
-
zebra_unlock(zh->lock_shadow);
zebra_unlock(zh->lock_normal);