From: Volker Lendecke Date: Fri, 3 Dec 2010 08:34:02 +0000 (-0700) Subject: s3: Fix serverid_exists X-Git-Url: http://git.samba.org/?p=obnox%2Fsamba-ctdb.git;a=commitdiff_plain;h=d530521fc00027f2438acacf5618a4d38afeba8b s3: Fix serverid_exists In the cluster case it can happen that a node just died and we did not yet have the time to clean up serverid.tdb. If the corresponding serverid.tdb record that represented a process was migrated away from the dead record, it represents existence of a process where it is already dead. --- diff --git a/source3/lib/serverid.c b/source3/lib/serverid.c index a174774a2d..71a6ddf44f 100644 --- a/source3/lib/serverid.c +++ b/source3/lib/serverid.c @@ -181,6 +181,10 @@ bool serverid_exists(const struct server_id *id) struct serverid_key key; TDB_DATA tdbkey; + if (lp_clustering() && !process_exists(*id)) { + return false; + } + db = serverid_db(); if (db == NULL) { return false;