* Advances the operationTime for a ClientSession. * * @param operationTime - the `BSON.Timestamp` of the operation type it is desired to advance to
(operationTime: Timestamp)
| 302 | * @param operationTime - the `BSON.Timestamp` of the operation type it is desired to advance to |
| 303 | */ |
| 304 | advanceOperationTime(operationTime: Timestamp): void { |
| 305 | if (this.operationTime == null) { |
| 306 | this.operationTime = operationTime; |
| 307 | return; |
| 308 | } |
| 309 | |
| 310 | if (operationTime.greaterThan(this.operationTime)) { |
| 311 | this.operationTime = operationTime; |
| 312 | } |
| 313 | } |
| 314 | |
| 315 | /** |
| 316 | * Advances the clusterTime for a ClientSession to the provided clusterTime of another ClientSession |
no outgoing calls
no test coverage detected