From: Adam Dickmeiss Date: Mon, 31 Oct 2011 14:17:09 +0000 (+0100) Subject: Don't reset reg state if register can not be opened X-Git-Tag: v2.0.50~6 X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=commitdiff_plain;h=ec6ef89747394edb31aedfce9d585b5b34191154;hp=58f263cb1cc09f9036ec9ddd5908cba56885796f;ds=sidebyside Don't reset reg state if register can not be opened If zebra_register_open fails, do not set state back to 'o', since it may be dirty (half transaction). --- diff --git a/index/zebraapi.c b/index/zebraapi.c index 1c30eaa..6415172 100644 --- 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);