summaryrefslogtreecommitdiff
path: root/src/mongo/s/write_ops
diff options
context:
space:
mode:
authorMarcos José Grillo Ramírez <marcos.grillo@mongodb.com>2020-09-05 15:01:13 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-09-09 22:27:23 +0000
commit377b8fe43916ff2c4e2ed35cb80548aeb8ba8c8d (patch)
treee2036dd117f4b5f2255faedc1ef02853d879ae2c /src/mongo/s/write_ops
parentf9d4a15397585a8f00ea0afa9864531e1f4ed5fb (diff)
downloadmongo-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.cpp2
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);
}