diff options
Diffstat (limited to 'src/mongo/db/op_observer_util.h')
| -rw-r--r-- | src/mongo/db/op_observer_util.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/mongo/db/op_observer_util.h b/src/mongo/db/op_observer_util.h index c67737bb4f8..5ceef0c69c3 100644 --- a/src/mongo/db/op_observer_util.h +++ b/src/mongo/db/op_observer_util.h @@ -32,7 +32,6 @@ #include "mongo/db/catalog/collection_options.h" #include "mongo/db/namespace_string.h" #include "mongo/db/op_observer.h" -#include "mongo/s/shard_key_pattern.h" namespace mongo::repl { BSONObj makeCollModCmdObj(const BSONObj& collModCmd, @@ -44,14 +43,9 @@ public: DocumentKey(BSONObj id, boost::optional<BSONObj> _shardKey) : _id(id.getOwned()), _shardKey(std::move(_shardKey)) { invariant(!id.isEmpty()); - - if (_shardKey) { - _shardKey = _shardKey->getOwned(); - } } BSONObj getId() const; - boost::optional<BSONObj> getShardKey() const; BSONObj getShardKeyAndId() const; @@ -66,6 +60,4 @@ private: */ DocumentKey getDocumentKey(OperationContext* opCtx, NamespaceString const& nss, BSONObj const& doc); -DocumentKey getDocumentKey(const ShardKeyPattern& shardKeyPattern, BSONObj const& doc); - } // namespace mongo::repl |
