Fix to reload dbusers
Tidyup show service output
This commit is contained in:
@ -794,9 +794,10 @@ SERVER *server = service->databases;
|
|||||||
int i;
|
int i;
|
||||||
|
|
||||||
dcb_printf(dcb, "Service %p\n", service);
|
dcb_printf(dcb, "Service %p\n", service);
|
||||||
dcb_printf(dcb, "\tService: %s\n", service->name);
|
dcb_printf(dcb, "\tService: %s\n",
|
||||||
dcb_printf(dcb, "\tRouter: %s (%p)\n", service->routerModule,
|
service->name);
|
||||||
service->router);
|
dcb_printf(dcb, "\tRouter: %s (%p)\n",
|
||||||
|
service->routerModule, service->router);
|
||||||
if (service->router)
|
if (service->router)
|
||||||
service->router->diagnostics(service->router_instance, dcb);
|
service->router->diagnostics(service->router_instance, dcb);
|
||||||
dcb_printf(dcb, "\tStarted: %s",
|
dcb_printf(dcb, "\tStarted: %s",
|
||||||
@ -818,9 +819,12 @@ int i;
|
|||||||
server->protocol);
|
server->protocol);
|
||||||
server = server->nextdb;
|
server = server->nextdb;
|
||||||
}
|
}
|
||||||
dcb_printf(dcb, "\tUsers data: %p\n", service->users);
|
dcb_printf(dcb, "\tUsers data: %p\n",
|
||||||
dcb_printf(dcb, "\tTotal connections: %d\n", service->stats.n_sessions);
|
service->users);
|
||||||
dcb_printf(dcb, "\tCurrently connected: %d\n", service->stats.n_current);
|
dcb_printf(dcb, "\tTotal connections: %d\n",
|
||||||
|
service->stats.n_sessions);
|
||||||
|
dcb_printf(dcb, "\tCurrently connected: %d\n",
|
||||||
|
service->stats.n_current);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -300,7 +300,7 @@ struct subcommand reloadoptions[] = {
|
|||||||
{ "dbusers", 1, reload_dbusers,
|
{ "dbusers", 1, reload_dbusers,
|
||||||
"Reload the dbuser data for a service. E.g. reload dbusers \"splitter service\"",
|
"Reload the dbuser data for a service. E.g. reload dbusers \"splitter service\"",
|
||||||
"Reload the dbuser data for a service. E.g. reload dbusers 0x849420",
|
"Reload the dbuser data for a service. E.g. reload dbusers 0x849420",
|
||||||
{ARG_TYPE_DBUSERS, 0, 0} },
|
{ARG_TYPE_SERVICE, 0, 0} },
|
||||||
{ NULL, 0, NULL, NULL, NULL,
|
{ NULL, 0, NULL, NULL, NULL,
|
||||||
{0, 0, 0} }
|
{0, 0, 0} }
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user