diff options
Diffstat (limited to 'src/mongo/s/query/cluster_cursor_manager.h')
-rw-r--r-- | src/mongo/s/query/cluster_cursor_manager.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/mongo/s/query/cluster_cursor_manager.h b/src/mongo/s/query/cluster_cursor_manager.h index fa129d26d02..3d0afe5db94 100644 --- a/src/mongo/s/query/cluster_cursor_manager.h +++ b/src/mongo/s/query/cluster_cursor_manager.h @@ -70,7 +70,8 @@ class StatusWith; * No public methods throw exceptions, and all public methods are thread-safe. */ class ClusterCursorManager { - MONGO_DISALLOW_COPYING(ClusterCursorManager); + ClusterCursorManager(const ClusterCursorManager&) = delete; + ClusterCursorManager& operator=(const ClusterCursorManager&) = delete; public: // @@ -131,7 +132,8 @@ public: * current OperationContext, and return the cursor. */ class PinnedCursor { - MONGO_DISALLOW_COPYING(PinnedCursor); + PinnedCursor(const PinnedCursor&) = delete; + PinnedCursor& operator=(const PinnedCursor&) = delete; public: /** @@ -550,7 +552,8 @@ private: * CursorEntry is a moveable, non-copyable container for a single cursor. */ class CursorEntry { - MONGO_DISALLOW_COPYING(CursorEntry); + CursorEntry(const CursorEntry&) = delete; + CursorEntry& operator=(const CursorEntry&) = delete; public: CursorEntry() = default; @@ -661,7 +664,8 @@ private: * contained cursors share the same 32-bit prefix of their cursor id. */ struct CursorEntryContainer { - MONGO_DISALLOW_COPYING(CursorEntryContainer); + CursorEntryContainer(const CursorEntryContainer&) = delete; + CursorEntryContainer& operator=(const CursorEntryContainer&) = delete; CursorEntryContainer(uint32_t containerPrefix) : containerPrefix(containerPrefix) {} |