mirror of
https://github.com/samba-team/samba.git
synced 2025-08-30 17:49:30 +03:00
- fixed flags display in logs
- added monitor handler to test event script (This used to be ctdb commit a4c18dddee169df49e5d77d9a94ce9329f169319)
This commit is contained in:
@ -991,8 +991,7 @@ static void monitor_handler(struct ctdb_context *ctdb, uint64_t srvid,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
DEBUG(0,("Node %u has changed flags - was 0x%x now 0x%x\n",
|
DEBUG(0,("Node %u has changed flags - now 0x%x\n", c->vnn, c->flags));
|
||||||
c->vnn, nodemap->nodes[i].flags, c->flags));
|
|
||||||
|
|
||||||
nodemap->nodes[i].flags = c->flags;
|
nodemap->nodes[i].flags = c->flags;
|
||||||
|
|
||||||
|
@ -5,6 +5,10 @@ cmd="$1"
|
|||||||
shift
|
shift
|
||||||
|
|
||||||
case $cmd in
|
case $cmd in
|
||||||
|
monitor)
|
||||||
|
echo "`date` monitor event"
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
startup)
|
startup)
|
||||||
echo "`date` ctdb startup event"
|
echo "`date` ctdb startup event"
|
||||||
exit 0;
|
exit 0;
|
||||||
|
Reference in New Issue
Block a user