GoLang MongoDB\Driver\Session::advanceOperationTime

request it (133)
GoLang replacement for PHP's MongoDB\Driver\Session::advanceOperationTime [edit | history]

Do you know a GoLang replacement for PHP's MongoDB\Driver\Session::advanceOperationTime? Write it!

PHP MongoDB\Driver\Session::advanceOperationTime

PHP original manual for MongoDB\Driver\Session::advanceOperationTime [ show | php.net ]


(mongodb >=1.4.0)

MongoDB\Driver\Session::advanceOperationTimeAdvances the operation time for this session


final public void MongoDB\Driver\Session::advanceOperationTime ( MongoDB\BSON\TimestampInterface $operationTime )

Advances the operation time for this session. If the operation time is less than or equal to the session's current operation time, this function is a no-op.

By using this method in conjunction with MongoDB\Driver\Session::advanceClusterTime() to copy the operation and cluster times from another session, you can ensure that operations in this session are causally consistent with the last operation in the other session.



The operation time is a logical timestamp. Typically, this value will be obtained by calling MongoDB\Driver\Session::getOperationTime() on another session object.

Return Values

No value is returned.


See Also