mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +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:
parent
eaf701fbda
commit
cafddf76dc
@ -991,8 +991,7 @@ static void monitor_handler(struct ctdb_context *ctdb, uint64_t srvid,
|
||||
return;
|
||||
}
|
||||
|
||||
DEBUG(0,("Node %u has changed flags - was 0x%x now 0x%x\n",
|
||||
c->vnn, nodemap->nodes[i].flags, c->flags));
|
||||
DEBUG(0,("Node %u has changed flags - now 0x%x\n", c->vnn, c->flags));
|
||||
|
||||
nodemap->nodes[i].flags = c->flags;
|
||||
|
||||
|
@ -5,6 +5,10 @@ cmd="$1"
|
||||
shift
|
||||
|
||||
case $cmd in
|
||||
monitor)
|
||||
echo "`date` monitor event"
|
||||
exit 0
|
||||
;;
|
||||
startup)
|
||||
echo "`date` ctdb startup event"
|
||||
exit 0;
|
||||
|
Loading…
Reference in New Issue
Block a user