SERVER-127293 Handle "cu" opType in _parseAreOpsCrudOnly (#54165)
GitOrigin-RevId: 2e94ccddb4a1eeaa75eea459829bfafee639f185
This commit is contained in:
parent
0076cca5e1
commit
d059c87f87
@ -69,6 +69,8 @@ bool _parseAreOpsCrudOnly(const BSONObj& applyOpCmd) {
|
||||
continue;
|
||||
} else if (opType == "u"_sd) {
|
||||
continue;
|
||||
} else if (opType == "cu"_sd) {
|
||||
continue;
|
||||
} else if (opType == "n"_sd) {
|
||||
continue;
|
||||
} else {
|
||||
|
||||
@ -51,6 +51,9 @@ TEST(ApplyOpsCommandInfoTest, TestParseAreOpsCrudOnlySingleOps) {
|
||||
const BSONObj updateOp = BSON("applyOps" << BSON_ARRAY(BSON("op" << "u")));
|
||||
ASSERT_TRUE(_parseAreOpsCrudOnly(updateOp));
|
||||
|
||||
const BSONObj containerUpdateOp = BSON("applyOps" << BSON_ARRAY(BSON("op" << "cu")));
|
||||
ASSERT_TRUE(_parseAreOpsCrudOnly(containerUpdateOp));
|
||||
|
||||
const BSONObj noop = BSON("applyOps" << BSON_ARRAY(BSON("op" << "n")));
|
||||
ASSERT_TRUE(_parseAreOpsCrudOnly(noop));
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user