Details
-
Task
-
Resolution: Fixed
-
Major - P3
-
None
-
Fully Compatible
-
Sharding 2018-03-12, Sharding 2018-03-26, Sharding 2018-04-09
Description
readConcern: {level: "snapshot"}
|
The task objective is to blacklist all but supported commands on mongos and add validating tests.
suggested implementation:
add a public method to the Command class
|
virtual bool supportsReadConcernMongos(const std::string& dbName,
|
const BSONObj& cmdObj,
|
repl::ReadConcernLevel level) const {
|
return level == repl::ReadConcernLevel::kLocalReadConcern;
|
}
|
Currently its planned to be called in the beginning of the command path on mongos instead those lines
https://github.com/mongodb/mongo/blob/master/src/mongo/s/commands/strategy.cpp#L221-L227