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.
struct serverid_key key;
TDB_DATA tdbkey;
+ if (lp_clustering() && !process_exists(*id)) {
+ return false;
+ }
+
db = serverid_db();
if (db == NULL) {
return false;