Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
qingyang-hu committed Sep 26, 2024
1 parent 246360d commit 4aed025
Show file tree
Hide file tree
Showing 7 changed files with 526 additions and 103 deletions.
5 changes: 4 additions & 1 deletion mongo/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -877,6 +877,9 @@ func (c *Client) BulkWrite(ctx context.Context, models *ClientWriteModels,
}

wc := c.writeConcern
if bwo.WriteConcern != nil {
wc = bwo.WriteConcern
}
if sess.TransactionRunning() {
wc = nil
}
Expand Down Expand Up @@ -905,7 +908,7 @@ func (c *Client) BulkWrite(ctx context.Context, models *ClientWriteModels,
op.errorsOnly = true
}
err = op.execute(ctx)
return op.result, replaceErrors(err)
return &op.result, replaceErrors(err)
}

// newLogger will use the LoggerOptions to create an internal logger and publish
Expand Down
Loading

0 comments on commit 4aed025

Please sign in to comment.