summaryrefslogtreecommitdiff
path: root/src/mongo/db/op_observer_impl.cpp
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2018-01-24 08:39:12 -0500
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2018-01-29 13:43:56 -0500
commit1162812624d110c52ac73a548f43b2d7f9ecf46c (patch)
tree7fe0bcbd604e654302ca83be3484a30c99a0c0a5 /src/mongo/db/op_observer_impl.cpp
parent2487ab101a42434e1f61e68ee7c2383432861f8b (diff)
downloadmongo-1162812624d110c52ac73a548f43b2d7f9ecf46c.tar.gz
SERVER-32901 Consolidate sharding libraries
Also gets rid of most usages of the std::string variant of CollectionShardingState::get.
Diffstat (limited to 'src/mongo/db/op_observer_impl.cpp')
-rw-r--r--src/mongo/db/op_observer_impl.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/op_observer_impl.cpp b/src/mongo/db/op_observer_impl.cpp
index 0eba11776e8..4323e783738 100644
--- a/src/mongo/db/op_observer_impl.cpp
+++ b/src/mongo/db/op_observer_impl.cpp
@@ -319,7 +319,7 @@ void OpObserverImpl::onInserts(OperationContext* opCtx,
auto css = (nss == NamespaceString::kSessionTransactionsTableNamespace || fromMigrate)
? nullptr
- : CollectionShardingState::get(opCtx, nss.ns());
+ : CollectionShardingState::get(opCtx, nss);
size_t index = 0;
for (auto it = begin; it != end; it++, index++) {
@@ -415,7 +415,7 @@ void OpObserverImpl::aboutToDelete(OperationContext* opCtx,
NamespaceString const& nss,
BSONObj const& doc) {
auto& deleteState = getDeleteState(opCtx);
- auto* css = CollectionShardingState::get(opCtx, nss.ns());
+ auto* css = CollectionShardingState::get(opCtx, nss);
deleteState = css->makeDeleteState(doc);
}
@@ -436,7 +436,7 @@ void OpObserverImpl::onDelete(OperationContext* opCtx,
if (nss != NamespaceString::kSessionTransactionsTableNamespace) {
if (!fromMigrate) {
- auto css = CollectionShardingState::get(opCtx, nss.ns());
+ auto css = CollectionShardingState::get(opCtx, nss);
css->onDeleteOp(opCtx, deleteState, opTime.writeOpTime, opTime.prePostImageOpTime);
}
}