summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNathan Myers <nathan.myers@10gen.com>2017-06-02 17:01:10 -0400
committerNathan Myers <nathan.myers@10gen.com>2017-06-02 18:16:14 -0400
commit7c74e21713aa0dfecf9c04281ae17f3c37aaa94d (patch)
treeb0fe474365c33ea400bd375e011361d1bb1905b4 /src
parent47aad7d695eb2f01696a706a70dc1012e8247d46 (diff)
downloadmongo-7c74e21713aa0dfecf9c04281ae17f3c37aaa94d.tar.gz
SERVER-29342 Fix build on windos
Diffstat (limited to 'src')
-rw-r--r--src/mongo/db/s/collection_range_deleter.h2
-rw-r--r--src/mongo/db/s/collection_range_deleter_test.cpp3
2 files changed, 1 insertions, 4 deletions
diff --git a/src/mongo/db/s/collection_range_deleter.h b/src/mongo/db/s/collection_range_deleter.h
index 52d3ec44256..66fd12eeea7 100644
--- a/src/mongo/db/s/collection_range_deleter.h
+++ b/src/mongo/db/s/collection_range_deleter.h
@@ -100,7 +100,7 @@ public:
DeleteNotification notification{};
};
- enum class Action { kFinished, kMore, kWriteOpLog };
+ enum Action { kFinished, kMore, kWriteOpLog };
CollectionRangeDeleter() = default;
~CollectionRangeDeleter();
diff --git a/src/mongo/db/s/collection_range_deleter_test.cpp b/src/mongo/db/s/collection_range_deleter_test.cpp
index adaf90e7d0f..c30412ceecc 100644
--- a/src/mongo/db/s/collection_range_deleter_test.cpp
+++ b/src/mongo/db/s/collection_range_deleter_test.cpp
@@ -102,9 +102,6 @@ private:
OID _epoch;
};
-bool operator==(CollectionRangeDeleter::Action a, CollectionRangeDeleter::Action b) {
- return (int)a == (int)b;
-}
std::ostream& operator<<(std::ostream& os, CollectionRangeDeleter::Action a) {
return os << (int)a;
}