-
Notifications
You must be signed in to change notification settings - Fork 915
GODRIVER-3522 Add support for the rawData option for time-series bucket access. #2159
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
Changes from all commits
106ffd8
6b77cb6
5360234
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -39,6 +39,7 @@ type bulkWrite struct { | |||||
writeConcern *writeconcern.WriteConcern | ||||||
result BulkWriteResult | ||||||
let interface{} | ||||||
rawData *bool | ||||||
} | ||||||
|
||||||
func (bw *bulkWrite) execute(ctx context.Context) error { | ||||||
|
@@ -209,6 +210,10 @@ func (bw *bulkWrite) runInsert(ctx context.Context, batch bulkWriteBatch) (opera | |||||
} | ||||||
op = op.Retry(retry) | ||||||
|
||||||
if bw.rawData != nil { | ||||||
op.RawData(*bw.rawData) | ||||||
} | ||||||
|
||||||
err := op.Execute(ctx) | ||||||
|
||||||
return op.Result(), err | ||||||
|
@@ -282,6 +287,10 @@ func (bw *bulkWrite) runDelete(ctx context.Context, batch bulkWriteBatch) (opera | |||||
} | ||||||
op = op.Retry(retry) | ||||||
|
||||||
if bw.rawData != nil { | ||||||
op.RawData(*bw.rawData) | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The return value of op.RawData() is not being assigned back to op. This should be
Suggested change
Copilot uses AI. Check for mistakes. Positive FeedbackNegative Feedback |
||||||
} | ||||||
|
||||||
err := op.Execute(ctx) | ||||||
|
||||||
return op.Result(), err | ||||||
|
@@ -415,6 +424,10 @@ func (bw *bulkWrite) runUpdate(ctx context.Context, batch bulkWriteBatch) (opera | |||||
} | ||||||
op = op.Retry(retry) | ||||||
|
||||||
if bw.rawData != nil { | ||||||
op.RawData(*bw.rawData) | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The return value of op.RawData() is not being assigned back to op. This should be
Suggested change
Copilot uses AI. Check for mistakes. Positive FeedbackNegative Feedback |
||||||
} | ||||||
|
||||||
err := op.Execute(ctx) | ||||||
|
||||||
return op.Result(), err | ||||||
|
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.
The return value of op.RawData() is not being assigned back to op. This should be
op = op.RawData(*bw.rawData)
to properly chain the method call.Copilot uses AI. Check for mistakes.