mirror of
				https://github.com/open5gs/open5gs.git
				synced 2025-11-03 13:33:26 +00:00 
			
		
		
		
	[mongo] Use "ping" command instead of "serverStatus"
"serverStatus" on the "admin" database may fail due to insufficient privileges.
This commit is contained in:
		@@ -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);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user