diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2019-02-26 08:27:04 -0500 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2019-02-28 07:36:35 -0500 |
commit | 851dad7902d6bb8c3ed25f99f565a2e2c8c8bc47 (patch) | |
tree | 63db6c7ca09b69e442afda8dc3d86babb5ee19a7 /src/mongo/db/auth/auth_op_observer.cpp | |
parent | 8b4f0a7893a329b0c0370385180d6a13077a8f22 (diff) | |
download | mongo-851dad7902d6bb8c3ed25f99f565a2e2c8c8bc47.tar.gz |
SERVER-39495 Only return versioned filtering metadata for cases that actually need to do filtering
Diffstat (limited to 'src/mongo/db/auth/auth_op_observer.cpp')
-rw-r--r-- | src/mongo/db/auth/auth_op_observer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/auth/auth_op_observer.cpp b/src/mongo/db/auth/auth_op_observer.cpp index 5a711fd7d20..df979414ba6 100644 --- a/src/mongo/db/auth/auth_op_observer.cpp +++ b/src/mongo/db/auth/auth_op_observer.cpp @@ -71,7 +71,7 @@ void AuthOpObserver::onUpdate(OperationContext* opCtx, const OplogUpdateEntryArg BSONObj AuthOpObserver::getDocumentKey(OperationContext* opCtx, NamespaceString const& nss, BSONObj const& doc) { - auto metadata = CollectionShardingState::get(opCtx, nss)->getMetadataForOperation(opCtx); + const auto metadata = CollectionShardingState::get(opCtx, nss)->getCurrentMetadata(); return metadata->extractDocumentKey(doc).getOwned(); } |