Skip to content

Commit af54779

Browse files
authored
GODRIVER-2283 Remove innacurate comment about AdvanceCluster/OperationTime (#875)
1 parent 9101b41 commit af54779

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mongo/session.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,10 @@ func SessionFromContext(ctx context.Context) Session {
106106
//
107107
// EndSession method should abort any existing transactions and close the session.
108108
//
109-
// AdvanceClusterTime and AdvanceOperationTime are for internal use only and must not be called.
109+
// AdvanceClusterTime advances the cluster time for a session. This method will return an error if the session has ended.
110+
//
111+
// AdvanceOperationTime advances the operation time for a session. This method will return an error if the session has
112+
// ended.
110113
type Session interface {
111114
// Functions to modify session state.
112115
StartTransaction(...*options.TransactionOptions) error

0 commit comments

Comments
 (0)