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:
2a444fb
)
Fixed bug #47: Commit needs to check for roll-back.
author
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 12 Oct 2006 13:05:59 +0000
(13:05 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 12 Oct 2006 13:05:59 +0000
(13:05 +0000)
index/zebraapi.c
patch
|
blob
|
history
diff --git
a/index/zebraapi.c
b/index/zebraapi.c
index
b0796c0
..
eebf263
100644
(file)
--- a/
index/zebraapi.c
+++ b/
index/zebraapi.c
@@
-1,4
+1,4
@@
-/* $Id: zebraapi.c,v 1.120.2.15 2006-09-29 07:05:44 adam Exp $
+/* $Id: zebraapi.c,v 1.120.2.16 2006-10-12 13:05:59 adam Exp $
Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004
Index Data Aps
@@
-1723,6
+1723,12
@@
static int zebra_commit_ex (ZebraHandle zh, int clean_only)
zebra_get_state (zh, &val, &seqno);
+ if (val == 'd')
+ {
+ logf(LOG_WARN, "previous transaction didn't reach commit");
+ clean_only = 1;
+ }
+
if (rval && *rval)
bf_cache (bfs, rval);
if (bf_commitExists (bfs))