mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
ctdb-recoverd: No need to set ctdbd_pid again
This is unnecessary since ctdbd_pid is set very early in the code before creating any other processes including recovery daemon. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net> Autobuild-User(master): Amitay Isaacs <amitay@samba.org> Autobuild-Date(master): Sat Jul 5 09:20:27 CEST 2014 on sn-devel-104
This commit is contained in:
parent
1677dd499c
commit
331fb7fc64
@ -4283,8 +4283,6 @@ int ctdb_start_recoverd(struct ctdb_context *ctdb)
|
||||
return -1;
|
||||
}
|
||||
|
||||
ctdb->ctdbd_pid = getpid();
|
||||
|
||||
ctdb->recoverd_pid = ctdb_fork_no_free_ringbuffer(ctdb);
|
||||
if (ctdb->recoverd_pid == -1) {
|
||||
return -1;
|
||||
|
Loading…
Reference in New Issue
Block a user