From: Adam Dickmeiss Date: Thu, 12 Oct 2006 13:06:00 +0000 (+0000) Subject: Fixed bug #47: Commit needs to check for roll-back. X-Git-Tag: ZEBRA.2.0.6~88 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=ba54c2986ad5d1088cd70b577d9941a9d4e14e6c;p=idzebra-moved-to-github.git Fixed bug #47: Commit needs to check for roll-back. --- diff --git a/index/zebraapi.c b/index/zebraapi.c index f54589b..efbb919 100644 --- a/index/zebraapi.c +++ b/index/zebraapi.c @@ -1,4 +1,4 @@ -/* $Id: zebraapi.c,v 1.229 2006-09-29 07:05:44 adam Exp $ +/* $Id: zebraapi.c,v 1.230 2006-10-12 13:06:00 adam Exp $ Copyright (C) 1995-2006 Index Data ApS @@ -2015,6 +2015,12 @@ static ZEBRA_RES zebra_commit_ex(ZebraHandle zh, int clean_only) } zebra_get_state (zh, &val, &seqno); + if (val == 'd') + { + yaz_log(YLOG_WARN, "previous transaction didn't reach commit"); + clean_only = 1; + } + if (rval && *rval) bf_cache (bfs, rval); if (bf_commitExists (bfs))