Rev 302: check for error on ctdb_ltdb_store in http://samba.org/~tridge/ctdb

tridge at samba.org tridge at samba.org
Tue May 15 00:17:01 GMT 2007


------------------------------------------------------------
revno: 302
revision-id: tridge at samba.org-20070515001659-uwyvianttzhe05r8
parent: tridge at samba.org-20070514234433-s9apc5wp2heogcya
committer: Andrew Tridgell <tridge at samba.org>
branch nick: tridge
timestamp: Tue 2007-05-15 10:16:59 +1000
message:
  check for error on ctdb_ltdb_store
modified:
  common/ctdb_call.c             ctdb_call.c-20061128065342-to93h6eejj5kon81-1
=== modified file 'common/ctdb_call.c'
--- a/common/ctdb_call.c	2007-05-12 09:55:18 +0000
+++ b/common/ctdb_call.c	2007-05-15 00:16:59 +0000
@@ -271,7 +271,9 @@
 	memcpy(&r->data[key->dsize], data->dptr, data->dsize);
 
 	header->dmaster = c->hdr.srcnode;
-	ctdb_ltdb_store(ctdb_db, *key, header, *data);
+	if (ctdb_ltdb_store(ctdb_db, *key, header, *data) != 0) {
+		ctdb_fatal(ctdb, "Failed to store record in ctdb_call_send_dmaster");
+	}
 	
 	ctdb_queue_packet(ctdb, &r->hdr);
 



More information about the samba-cvs mailing list