-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Fully Compatible
-
ALL
-
Sharding EMEA 2022-01-10, Sharding EMEA 2022-01-24
-
138
The _configsvrRemoveShard command must wait for majority before returning in order to ensure causal consistency.
It should be enough to add the following code at the end of the command:
repl::ReplClientInfo::forClient(opCtx->getClient()).setLastOpToSystemLastOpTime(opCtx);