Commit 693398f
committed
Correct shardkey access in buildBulkWriteOps
buildBulkWriteOperations adds the shard key to
the filter condition, but it sets it to the
schema's value, not the document's value. It also
updates a problematic test, which passed because
the update value it uses was the same schema's
shard key value.1 parent 93ebbe1 commit 693398f
2 files changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3631 | 3631 | | |
3632 | 3632 | | |
3633 | 3633 | | |
3634 | | - | |
| 3634 | + | |
3635 | 3635 | | |
3636 | 3636 | | |
3637 | 3637 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6365 | 6365 | | |
6366 | 6366 | | |
6367 | 6367 | | |
6368 | | - | |
6369 | 6368 | | |
6370 | | - | |
| 6369 | + | |
| 6370 | + | |
6371 | 6371 | | |
6372 | 6372 | | |
6373 | 6373 | | |
| |||
6386 | 6386 | | |
6387 | 6387 | | |
6388 | 6388 | | |
6389 | | - | |
| 6389 | + | |
6390 | 6390 | | |
6391 | 6391 | | |
6392 | 6392 | | |
| |||
0 commit comments