Rev 211: allow ctdbd_allocate_pkt to be used in client code in http://samba.org/~tridge/ctdb

tridge at samba.org tridge at samba.org
Sat Apr 28 10:01:46 GMT 2007


------------------------------------------------------------
revno: 211
revision-id: tridge at samba.org-20070428100146-vc86b04jx6za7v7h
parent: tridge at samba.org-20070428093549-hn7t2tsfo8e3ru1m
committer: Andrew Tridgell <tridge at samba.org>
branch nick: tridge
timestamp: Sat 2007-04-28 12:01:46 +0200
message:
  allow ctdbd_allocate_pkt to be used in client code
modified:
  common/ctdb_daemon.c           ctdb_daemon.c-20070409200331-3el1kqgdb9m4ib0g-1
=== modified file 'common/ctdb_daemon.c'
--- a/common/ctdb_daemon.c	2007-04-28 09:35:49 +0000
+++ b/common/ctdb_daemon.c	2007-04-28 10:01:46 +0000
@@ -695,7 +695,9 @@
 	hdr->length       = length;
 	hdr->ctdb_magic   = CTDB_MAGIC;
 	hdr->ctdb_version = CTDB_VERSION;
-	hdr->generation   = ctdb->vnn_map->generation;
+	if (ctdb->vnn_map) {
+		hdr->generation = ctdb->vnn_map->generation;
+	}
 
 	return hdr;
 }



More information about the samba-cvs mailing list