-
Notifications
You must be signed in to change notification settings - Fork 896
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Complete pending CSOT reads in foreground #1873
base: master
Are you sure you want to change the base?
Complete pending CSOT reads in foreground #1873
Conversation
API Change Report./v2/eventcompatible changesConnectionPendingReadFailed: added ./v2/x/mongo/driver/drivertestincompatible changes##(*ChannelConn).Read: changed from func(context.Context) ([]byte, error) to func(context.Context, ..../v2/x/mongo/driver/mnet.ReadOption) ([]byte, error) ./v2/x/mongo/driver/mnetincompatible changesNewConnection: changed from func(interface{ReadWriteCloser; Describer}) *Connection to func(interface{ReadWriteCloser; Describer}) *Connection compatible changesReadOption: added ./v2/x/mongo/driver/sessionincompatible changes##./v2/x/mongo/driver/mnet.ReadWriteCloser.Read: changed from func(context.Context) ([]byte, error) to func(context.Context, ..../v2/x/mongo/driver/mnet.ReadOption) ([]byte, error) ./v2/x/mongo/driver/topologyincompatible changes##(*Connection).Read: changed from func(context.Context) ([]byte, error) to func(context.Context, ..../v2/x/mongo/driver/mnet.ReadOption) ([]byte, error) compatible changesPendingReadTimeout: added |
…ez/mongo-go-driver into DRIVERS-2884-foreground-exp
res, err = roundTrip(ctx, conn, *wm) | ||
|
||
readOpts := []mnet.ReadOption{} | ||
if maxTimeMS != 0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about the case where a user provides maxTimeMs in the command function, such as tailable awaitData cursors? In that case we omit maxTimeMS, but we should still rely on the pending read behavior.
Summary
Background & Motivation