From ec6ef89747394edb31aedfce9d585b5b34191154 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 31 Oct 2011 15:17:09 +0100 Subject: [PATCH] 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). --- index/zebraapi.c | 2 -- 1 file changed, 2 deletions(-) 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); -- 1.7.10.4