Skip site navigation (1)Skip section navigation (2)

  
 
  

home | help
MONGOC_CLIENT_RESET(3)		    libmongoc		  MONGOC_CLIENT_RESET(3)

SYNOPSIS
	void
	mongoc_client_reset (mongoc_client_t *client);

     Call   this   method   in	 the  child  after  forking  to  invalidate  the
     mongoc_client_t.

DESCRIPTION
     Calling  mongoc_client_reset()  prevents  resource  cleanup  in  the  child
     process from interfering with the parent process.

     This  method  causes  the	client to clear its session pool without sending
     endSessions. It also increments an internal generation counter on the given
     client. After this method is called, cursors from previous generations will
     not issue a killCursors command when they are  destroyed.	Client	sessions
     from previous generations cannot be used and should be destroyed.

PARAMETERS
     * client: A mongoc_client_t.

AUTHOR
     MongoDB, Inc

COPYRIGHT
     2009-present, MongoDB, Inc.

1.30.8				  Aug 27, 2026		  MONGOC_CLIENT_RESET(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=mongoc_client_reset&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>

home | help