summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-12-12 00:30:37 +0100
committerMichael Adam <obnox@samba.org>2010-02-12 23:12:11 +0100
commit10a44ee6930bb51b4b20ce42f35bc455ac1b7293 (patch)
tree53c5e7e4a81b0a7e3cdc8d26736cc5f7baaed47c /source3/lib
parenta66c40ff3853d109f13ad3a0dd79b170bb1c5366 (diff)
downloadsamba-10a44ee6930bb51b4b20ce42f35bc455ac1b7293.tar.gz
samba-10a44ee6930bb51b4b20ce42f35bc455ac1b7293.tar.bz2
samba-10a44ee6930bb51b4b20ce42f35bc455ac1b7293.zip
s3:dbwrap_ctdb: fix db_ctdb_fetch_db_seqnum_from_db() when NT_STATUS_NOT_FOUND.
Don't treat this as an error but return seqnum 0 instead. Michael
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/dbwrap_ctdb.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/lib/dbwrap_ctdb.c b/source3/lib/dbwrap_ctdb.c
index fb99e1d9cf..4c4486c539 100644
--- a/source3/lib/dbwrap_ctdb.c
+++ b/source3/lib/dbwrap_ctdb.c
@@ -685,10 +685,14 @@ static NTSTATUS db_ctdb_fetch_db_seqnum_from_db(struct db_ctdb_ctx *db,
key.dsize = strlen(keyname) + 1;
status = db_ctdb_ltdb_fetch(db, key, &header, mem_ctx, &data);
- if (!NT_STATUS_IS_OK(status)) {
+ if (!NT_STATUS_IS_OK(status) &&
+ !NT_STATUS_EQUAL(status, NT_STATUS_NOT_FOUND))
+ {
goto done;
}
+ status = NT_STATUS_OK;
+
if (data.dsize != sizeof(uint64_t)) {
*seqnum = 0;
goto done;