diff options
author | Marcos José Grillo Ramírez <marcos.grillo@mongodb.com> | 2020-09-05 15:01:13 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-09-09 22:27:23 +0000 |
commit | 377b8fe43916ff2c4e2ed35cb80548aeb8ba8c8d (patch) | |
tree | e2036dd117f4b5f2255faedc1ef02853d879ae2c /src/mongo/s/write_ops | |
parent | f9d4a15397585a8f00ea0afa9864531e1f4ed5fb (diff) | |
download | mongo-377b8fe43916ff2c4e2ed35cb80548aeb8ba8c8d.tar.gz |
SERVER-46199 Make the collection CatalogCache support causal consistency
This change implements the collection CatalogCache on top of the
ReadThroughCache, giving it the ability to support causal consistency.
As part of this change, the 'forceRefreshFromThisThread' flag has been
removed from the shard's refresh methods.
Co-authored-by: Tommaso Tocci <tommaso.tocci@mongodb.com>
Co-authored-by: Pierlauro Sciarelli <pierlauro.sciarelli@mongodb.com>
Co-authored-by: Kaloian Manassiev <kaloian.manassiev@mongodb.com>
Diffstat (limited to 'src/mongo/s/write_ops')
-rw-r--r-- | src/mongo/s/write_ops/chunk_manager_targeter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/s/write_ops/chunk_manager_targeter.cpp b/src/mongo/s/write_ops/chunk_manager_targeter.cpp index f7189efdfe9..6794dabc3ca 100644 --- a/src/mongo/s/write_ops/chunk_manager_targeter.cpp +++ b/src/mongo/s/write_ops/chunk_manager_targeter.cpp @@ -791,7 +791,7 @@ int ChunkManagerTargeter::getNShardsOwningChunks() const { void ChunkManagerTargeter::_refreshShardVersionNow(OperationContext* opCtx) { uassertStatusOK( - Grid::get(opCtx)->catalogCache()->getCollectionRoutingInfoWithRefresh(opCtx, _nss, true)); + Grid::get(opCtx)->catalogCache()->getCollectionRoutingInfoWithRefresh(opCtx, _nss)); _init(opCtx); } |