forked from acouzens/open5gs
[mongo] Use "ping" command instead of "serverStatus"
"serverStatus" on the "admin" database may fail due to insufficient privileges.
This commit is contained in:
parent
38aadb77e0
commit
0ebe07c83d
|
@ -40,7 +40,7 @@ ogs_mongoc_mongoc_client_get_server_status (mongoc_client_t *client, /* IN */
|
|||
|
||||
BSON_ASSERT (client);
|
||||
|
||||
BSON_APPEND_INT32 (&cmd, "serverStatus", 1);
|
||||
BSON_APPEND_INT32 (&cmd, "ping", 1);
|
||||
ret = mongoc_client_command_simple (
|
||||
client, "admin", &cmd, read_prefs, reply, error);
|
||||
bson_destroy (&cmd);
|
||||
|
|
Loading…
Reference in New Issue