X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fzebraapi.c;h=efbb91921a517eb8d3cd2099f1d8b1a75061910c;hb=ba54c2986ad5d1088cd70b577d9941a9d4e14e6c;hp=c944c9626c7298b8c3cd959dd9364323d28ad7e5;hpb=918c8b1ec479083d82c390d5dceb4899654cb666;p=idzebra-moved-to-github.git diff --git a/index/zebraapi.c b/index/zebraapi.c index c944c96..efbb919 100644 --- a/index/zebraapi.c +++ b/index/zebraapi.c @@ -1,4 +1,4 @@ -/* $Id: zebraapi.c,v 1.228 2006-09-21 20:22:34 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)) @@ -2027,9 +2033,6 @@ static ZEBRA_RES zebra_commit_ex(ZebraHandle zh, int clean_only) yaz_log (YLOG_DEBUG, "commit start"); bf_commitExec (bfs); -#ifndef WIN32 - sync (); -#endif } seqno++; zebra_set_state (zh, 'o', seqno);