diff options
author | Adam Midvidy <amidvidy@gmail.com> | 2015-11-13 17:36:27 -0500 |
---|---|---|
committer | Adam Midvidy <amidvidy@gmail.com> | 2015-11-17 16:42:14 -0500 |
commit | 8344af630c5113ab2f9cf2950c384ad926966ff9 (patch) | |
tree | ab41398a0c66a4db870ebf8ef105ce172b192754 /src/mongo/db/commands.h | |
parent | d2adb8eda7fae11b423696e1101e7d0642e19895 (diff) | |
download | mongo-8344af630c5113ab2f9cf2950c384ad926966ff9.tar.gz |
SERVER-21459 reserve bytes in ReplyBuilder buffer to avoid excessive reallocing
Diffstat (limited to 'src/mongo/db/commands.h')
-rw-r--r-- | src/mongo/db/commands.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/commands.h b/src/mongo/db/commands.h index 5897fb79321..37550c64131 100644 --- a/src/mongo/db/commands.h +++ b/src/mongo/db/commands.h @@ -95,6 +95,10 @@ public: // collection name or just a database name. ResourcePattern parseResourcePattern(const std::string& dbname, const BSONObj& cmdObj) const; + virtual std::size_t reserveBytesForReply() const { + return 0u; + } + const std::string name; /* run the given command |