summaryrefslogtreecommitdiff
path: root/src/mongo/db/geo
diff options
context:
space:
mode:
authorKevin Albertson <kevin.albertson@10gen.com>2016-06-23 11:49:38 -0400
committerKevin Albertson <kevin.albertson@10gen.com>2016-06-24 17:40:02 -0400
commit6c755905c31ac284d88077500ebba021d20b3626 (patch)
tree5d9926babdd696004b830a0a1664d58cef4b9e2c /src/mongo/db/geo
parent4d14ddf06f49ff55c90451dcff2da1a6edcaf366 (diff)
downloadmongo-6c755905c31ac284d88077500ebba021d20b3626.tar.gz
SERVER-5905 Add operation latency histogram
Diffstat (limited to 'src/mongo/db/geo')
-rw-r--r--src/mongo/db/geo/haystack.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/db/geo/haystack.cpp b/src/mongo/db/geo/haystack.cpp
index 6e736ca91ea..e4010b2ff1d 100644
--- a/src/mongo/db/geo/haystack.cpp
+++ b/src/mongo/db/geo/haystack.cpp
@@ -65,16 +65,23 @@ public:
virtual bool supportsWriteConcern(const BSONObj& cmd) const override {
return false;
}
+
bool slaveOk() const {
return true;
}
+
bool slaveOverrideOk() const {
return true;
}
+
bool supportsReadConcern() const final {
return true;
}
+ ReadWriteType getReadWriteType() const {
+ return ReadWriteType::kRead;
+ }
+
std::size_t reserveBytesForReply() const override {
return FindCommon::kInitReplyBufferSize;
}