diff options
author | Mathias Stearn <mathias@10gen.com> | 2015-04-14 18:13:08 -0400 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2015-06-29 19:23:15 -0400 |
commit | 28be53c1c9721c4ef8a3046bb3546a1b63e759f6 (patch) | |
tree | bdfd20f4ef40f02ebbd6ad307fc04e201316f8ca /src/mongo/db/stats | |
parent | d7f068a0fb33b2c85d7909e03edbe65a25b2f8e0 (diff) | |
download | mongo-28be53c1c9721c4ef8a3046bb3546a1b63e759f6.tar.gz |
SERVER-18022 Read Majority Committed implementation for primary nodes
Diffstat (limited to 'src/mongo/db/stats')
-rw-r--r-- | src/mongo/db/stats/snapshots.cpp | 6 | ||||
-rw-r--r-- | src/mongo/db/stats/snapshots.h | 10 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/mongo/db/stats/snapshots.cpp b/src/mongo/db/stats/snapshots.cpp index ce14714b87d..81aa221e9a1 100644 --- a/src/mongo/db/stats/snapshots.cpp +++ b/src/mongo/db/stats/snapshots.cpp @@ -103,8 +103,8 @@ StatusWith<SnapshotDiff> Snapshots::computeDelta() { return SnapshotDiff(delta.collectionUsageDiff(), delta.elapsed()); } -void SnapshotThread::run() { - Client::initThread("snapshot"); +void StatsSnapshotThread::run() { + Client::initThread("statsSnapshot"); while (!inShutdown()) { try { statsSnapshots.takeSnapshot(); @@ -117,5 +117,5 @@ void SnapshotThread::run() { } Snapshots statsSnapshots; -SnapshotThread snapshotThread; +StatsSnapshotThread statsSnapshotThread; } diff --git a/src/mongo/db/stats/snapshots.h b/src/mongo/db/stats/snapshots.h index f9f47d661d1..32ac1c6efbb 100644 --- a/src/mongo/db/stats/snapshots.h +++ b/src/mongo/db/stats/snapshots.h @@ -41,7 +41,7 @@ */ namespace mongo { -class SnapshotThread; +class StatsSnapshotThread; /** * stores a point in time snapshot @@ -53,7 +53,7 @@ class SnapshotData { unsigned long long _created; Top::UsageMap _usage; - friend class SnapshotThread; + friend class StatsSnapshotThread; friend class SnapshotDelta; friend class Snapshots; }; @@ -103,14 +103,14 @@ private: int _stored; }; -class SnapshotThread : public BackgroundJob { +class StatsSnapshotThread : public BackgroundJob { public: virtual std::string name() const { - return "snapshot"; + return "statsSnapshot"; } void run(); }; extern Snapshots statsSnapshots; -extern SnapshotThread snapshotThread; +extern StatsSnapshotThread statsSnapshotThread; } |