mirror of
https://github.com/samba-team/samba.git
synced 2025-03-20 22:50:26 +03:00
don't allow setrecmaster while not frozen
(This used to be ctdb commit e84b05ba6062ffc45b7f3c23e88feef1d39069c4)
This commit is contained in:
parent
5839eb1e80
commit
5d71cc78bb
@ -123,8 +123,12 @@ static int32_t ctdb_control_dispatch(struct ctdb_context *ctdb,
|
||||
}
|
||||
|
||||
case CTDB_CONTROL_SET_RECMASTER: {
|
||||
CHECK_CONTROL_DATA_SIZE(sizeof(uint32_t));
|
||||
if (ctdb->freeze_mode != CTDB_FREEZE_FROZEN) {
|
||||
DEBUG(0,("Attempt to set recmaster when not frozen\n"));
|
||||
return -1;
|
||||
}
|
||||
ctdb->recovery_master = ((uint32_t *)(&indata.dptr[0]))[0];
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user