diff --git a/server/modules/monitor/mysql_mon.c b/server/modules/monitor/mysql_mon.c index 8557eab77..ca5d63772 100644 --- a/server/modules/monitor/mysql_mon.c +++ b/server/modules/monitor/mysql_mon.c @@ -749,10 +749,7 @@ MONITOR_SERVERS *ptr; current->depth = depth + 1; depth++; } else { - if (depth == 0) - current->depth = -1; - else - current->depth = depth; + current->depth = depth - 1; break; } }