Files
mongo/jstests/libs/override_methods/read_and_write_concern_helpers.js

86 lines
1.9 KiB
JavaScript

/**
* Commands supporting read and write concern.
*/
var kCommandsSupportingReadConcern = new Set([
"aggregate",
"count",
"distinct",
"find",
"geoSearch",
]);
var kCommandsOnlySupportingReadConcernSnapshot = new Set([
"delete",
"findAndModify",
"findandmodify",
"insert",
"update",
]);
var kCommandsSupportingWriteConcern = new Set([
"_configsvrAddShard",
"_configsvrAddShardToZone",
"_configsvrCommitChunkMerge",
"_configsvrCommitChunkMigration",
"_configsvrCommitChunkSplit",
"_configsvrCreateDatabase",
"_configsvrEnableSharding",
"_configsvrMoveChunk",
"_configsvrMovePrimary",
"_configsvrRemoveShard",
"_configsvrRemoveShardFromZone",
"_configsvrShardCollection",
"_configsvrUpdateZoneKeyRange",
"_mergeAuthzCollections",
"_recvChunkStart",
"abortTransaction",
"appendOplogNote",
"applyOps",
"aggregate",
"captrunc",
"cleanupOrphaned",
"clone",
"cloneCollection",
"cloneCollectionAsCapped",
"collMod",
"commitTransaction",
"convertToCapped",
"create",
"createIndexes",
"createRole",
"createUser",
"delete",
"deleteIndexes",
"doTxn",
"drop",
"dropAllRolesFromDatabase",
"dropAllUsersFromDatabase",
"dropDatabase",
"dropIndexes",
"dropRole",
"dropUser",
"emptycapped",
"findAndModify",
"findandmodify",
"godinsert",
"grantPrivilegesToRole",
"grantRolesToRole",
"grantRolesToUser",
"insert",
"mapReduce",
"mapreduce",
"mapreduce.shardedfinish",
"moveChunk",
"renameCollection",
"revokePrivilegesFromRole",
"revokeRolesFromRole",
"revokeRolesFromUser",
"setFeatureCompatibilityVersion",
"update",
"updateRole",
"updateUser",
]);
var kCommandsSupportingWriteConcernInTransaction =
new Set(["doTxn", "abortTransaction", "commitTransaction"]);