Skip to content

Commit 4bcb25d

Browse files
ben-gawelMongoDB Bot
authored andcommitted
SERVER-89328 Avoid having the same variable name in DocumentKey constructor (#21879) (#31923)
GitOrigin-RevId: 5c4455f66619b3700611ee8069055cfbf2806bde
1 parent 8dbafcb commit 4bcb25d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mongo/db/op_observer/op_observer_util.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ BSONObj makeCollModCmdObj(const BSONObj& collModCmd,
4040

4141
class DocumentKey {
4242
public:
43-
DocumentKey(BSONObj id, boost::optional<BSONObj> _shardKey)
44-
: _id(id.getOwned()), _shardKey(std::move(_shardKey)) {
43+
DocumentKey(BSONObj id, boost::optional<BSONObj> shardKey)
44+
: _id(id.getOwned()), _shardKey(std::move(shardKey)) {
4545
invariant(!id.isEmpty());
4646

4747
if (_shardKey) {

0 commit comments

Comments
 (0)