diff options
| author | Blake Oler <blake.oler@mongodb.com> | 2018-04-20 11:59:06 -0400 |
|---|---|---|
| committer | Blake Oler <blake.oler@mongodb.com> | 2018-04-20 12:10:44 -0400 |
| commit | 60cb34ea7351d25b0eb6bee947d21ada09cf438b (patch) | |
| tree | b567e1415b8dd3e2b7270e96600adf3d66b84bef /src/mongo/s/server.cpp | |
| parent | c6e3031ef797b9e3c65de9aaf9da812c49a97e5a (diff) | |
| download | mongo-60cb34ea7351d25b0eb6bee947d21ada09cf438b.tar.gz | |
SERVER-32677 Prevent sessions periodic refresh from prematurely accessing sharding internals
Diffstat (limited to 'src/mongo/s/server.cpp')
| -rw-r--r-- | src/mongo/s/server.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/s/server.cpp b/src/mongo/s/server.cpp index cedcf00ff64..b35b3ed28ab 100644 --- a/src/mongo/s/server.cpp +++ b/src/mongo/s/server.cpp @@ -321,6 +321,8 @@ Status initializeSharding(OperationContext* opCtx) { return status; } + Grid::get(opCtx)->setShardingInitialized(); + return Status::OK(); } |
