diff options
author | Andrew Tridgell <tridge@samba.org> | 2007-04-05 04:08:00 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:49:49 -0500 |
commit | 0cbea3104b5036b44da7f043ab718939f1e4ec37 (patch) | |
tree | c51e3770545e09e52377f0ac84c5f7ab97a708a1 | |
parent | 66156220ebf5dc212e9aa86015b7301d1b665b50 (diff) | |
download | samba-0cbea3104b5036b44da7f043ab718939f1e4ec37.tar.gz samba-0cbea3104b5036b44da7f043ab718939f1e4ec37.tar.bz2 samba-0cbea3104b5036b44da7f043ab718939f1e4ec37.zip |
r22083: opendb backend to ctdb now passes simple tests
(This used to be commit 141bd7ac39b66132f989d44d731512f939973f9e)
-rw-r--r-- | source4/cluster/ctdb/opendb_ctdb.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source4/cluster/ctdb/opendb_ctdb.c b/source4/cluster/ctdb/opendb_ctdb.c index e12bf3260b..f184f7bb98 100644 --- a/source4/cluster/ctdb/opendb_ctdb.c +++ b/source4/cluster/ctdb/opendb_ctdb.c @@ -193,9 +193,14 @@ static NTSTATUS odb_pull_record(struct odb_lock *lck, struct opendb_file *file) TDB_DATA dbuf; DATA_BLOB blob; NTSTATUS status; - + dbuf = lck->data; + if (dbuf.dsize == 0) { + /* empty record in ctdb means the record isn't there */ + return NT_STATUS_OBJECT_NAME_NOT_FOUND; + } + blob.data = dbuf.dptr; blob.length = dbuf.dsize; |