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:
ec6ef89
)
Refactor if stmt a bit
author
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 31 Oct 2011 14:27:05 +0000
(15:27 +0100)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 31 Oct 2011 14:27:05 +0000
(15:27 +0100)
index/zebraapi.c
patch
|
blob
|
history
diff --git
a/index/zebraapi.c
b/index/zebraapi.c
index
6415172
..
2e64dd0
100644
(file)
--- a/
index/zebraapi.c
+++ b/
index/zebraapi.c
@@
-1812,9
+1812,7
@@
ZEBRA_RES zebra_begin_trans(ZebraHandle zh, int rw)
zh->reg = zebra_register_open(zh->service, zh->reg_name,
1, rval ? 1 : 0, zh->res,
zh->path_reg);
- if (zh->reg)
- zh->reg->seqno = seqno;
- else
+ if (!zh->reg)
{
zebra_unlock(zh->lock_shadow);
zebra_unlock(zh->lock_normal);
@@
-1827,6
+1825,7
@@
ZEBRA_RES zebra_begin_trans(ZebraHandle zh, int rw)
yaz_log(YLOG_FATAL, "%s", zh->errString);
return ZEBRA_FAIL;
}
+ zh->reg->seqno = seqno;
zebraExplain_curDatabase(zh->reg->zei, zh->basenames[0]);
}
else