svn commit: samba r22083 - in branches/SAMBA_4_0/source/cluster/ctdb: .

tridge at samba.org tridge at samba.org
Thu Apr 5 04:08:01 GMT 2007


Author: tridge
Date: 2007-04-05 04:08:00 +0000 (Thu, 05 Apr 2007)
New Revision: 22083

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=22083

Log:

opendb backend to ctdb now passes simple tests

Modified:
   branches/SAMBA_4_0/source/cluster/ctdb/opendb_ctdb.c


Changeset:
Modified: branches/SAMBA_4_0/source/cluster/ctdb/opendb_ctdb.c
===================================================================
--- branches/SAMBA_4_0/source/cluster/ctdb/opendb_ctdb.c	2007-04-05 03:51:49 UTC (rev 22082)
+++ branches/SAMBA_4_0/source/cluster/ctdb/opendb_ctdb.c	2007-04-05 04:08:00 UTC (rev 22083)
@@ -193,9 +193,14 @@
 	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;
 



More information about the samba-cvs mailing list