diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2018-07-29 22:57:56 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2018-08-01 12:00:24 -0400 |
commit | 24e411d5cd7f64c5b4da25a351529cd1873284b8 (patch) | |
tree | 060674e8824d23401972831e1d13e5d909ca9f30 /src/mongo/db/read_concern.cpp | |
parent | ce94b03f8c141dc0a34ff8682866795458684e45 (diff) | |
download | mongo-24e411d5cd7f64c5b4da25a351529cd1873284b8.tar.gz |
SERVER-29908 Remove ShardingState::appendInfo
Expose the ShardingState properties and move the appendInfo logic to be
entirely inside the 'getShardingState' function, which is its only
consumer.
Diffstat (limited to 'src/mongo/db/read_concern.cpp')
-rw-r--r-- | src/mongo/db/read_concern.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/db/read_concern.cpp b/src/mongo/db/read_concern.cpp index fef22f8ab1f..f1130eb6942 100644 --- a/src/mongo/db/read_concern.cpp +++ b/src/mongo/db/read_concern.cpp @@ -141,8 +141,7 @@ Status makeNoopWriteIfNeeded(OperationContext* opCtx, LogicalTime clusterTime) { return Status::OK(); } - auto myShard = - Grid::get(opCtx)->shardRegistry()->getShard(opCtx, shardingState->getShardName()); + auto myShard = Grid::get(opCtx)->shardRegistry()->getShard(opCtx, shardingState->shardId()); if (!myShard.isOK()) { return myShard.getStatus(); } |