diff options
-rw-r--r-- | src/mongo/db/views/view_graph.cpp | 1 | ||||
-rw-r--r-- | src/mongo/db/views/view_graph.h | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/db/views/view_graph.cpp b/src/mongo/db/views/view_graph.cpp index fc40fc4720a..7c613fba9ab 100644 --- a/src/mongo/db/views/view_graph.cpp +++ b/src/mongo/db/views/view_graph.cpp @@ -41,7 +41,6 @@ namespace mongo { const int ViewGraph::kMaxViewPipelineSizeBytes = 16 * 1000 * 1000; const int ViewGraph::kMaxViewDepth = 20; -uint64_t ViewGraph::_idCounter = 0; void ViewGraph::clear() { _graph.clear(); diff --git a/src/mongo/db/views/view_graph.h b/src/mongo/db/views/view_graph.h index 8f0e3c8c140..946cb9cb2ca 100644 --- a/src/mongo/db/views/view_graph.h +++ b/src/mongo/db/views/view_graph.h @@ -179,6 +179,6 @@ private: // Maps node ids to nodes. There is a 1-1 correspondence with _namespaceIds, hence the lifetime // of a node is the same as the lifetime as its corresponding node id. stdx::unordered_map<uint64_t, Node> _graph; - static uint64_t _idCounter; + uint64_t _idCounter = 0; }; } // namespace mongo |