diff options
author | Tess Avitabile <tess.avitabile@mongodb.com> | 2018-02-27 12:22:08 -0500 |
---|---|---|
committer | Tess Avitabile <tess.avitabile@mongodb.com> | 2018-02-27 17:00:37 -0500 |
commit | 9be3128cbba97456dd70647174a011c0a85ed88b (patch) | |
tree | 4ed2f1c0a5a327b67e1a3e727036c5c2dd215e00 | |
parent | 8e5c10e6e10ff48f4e9b875593be6756b75c19a5 (diff) | |
download | mongo-9be3128cbba97456dd70647174a011c0a85ed88b.tar.gz |
SERVER-33518 aggregate, distinct, filemd5, and geoNear should check out the session
-rw-r--r-- | src/mongo/db/service_entry_point_common.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mongo/db/service_entry_point_common.cpp b/src/mongo/db/service_entry_point_common.cpp index 76de224614c..a23026032a8 100644 --- a/src/mongo/db/service_entry_point_common.cpp +++ b/src/mongo/db/service_entry_point_common.cpp @@ -101,15 +101,19 @@ using logger::LogComponent; // session for commands that can take a lock and then run another whitelisted command in // DBDirectClient. Otherwise, the nested command would try to check out a session under a lock, // which is not allowed. -const StringMap<int> sessionCheckoutWhitelist = {{"applyOps", 1}, +const StringMap<int> sessionCheckoutWhitelist = {{"aggregate", 1}, + {"applyOps", 1}, {"count", 1}, {"delete", 1}, + {"distinct", 1}, {"eval", 1}, {"$eval", 1}, {"explain", 1}, + {"filemd5", 1}, {"find", 1}, {"findandmodify", 1}, {"findAndModify", 1}, + {"geoNear", 1}, {"geoSearch", 1}, {"getMore", 1}, {"group", 1}, |