aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md1
-rw-r--r--src/zenserver/projectstore/fileremoteprojectstore.cpp14
-rw-r--r--src/zenserver/projectstore/jupiterremoteprojectstore.cpp14
-rw-r--r--src/zenserver/projectstore/zenremoteprojectstore.cpp14
4 files changed, 22 insertions, 21 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 7de96a3a5..10e8366dd 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,7 @@
- Separate page for inspecting server stats
- Improvement: When batch-fetching cache values/attachments, only use block memory-buffering for items that may be memcached to reduce disk I/O
- Bugfix: Parse filenames as utf8 string when mirroring files inside an oplog using `zen oplog-mirror` and `zen vfs`
+- Bugfix: Properly initialize stats for file/jupiter/zen remote project store - fixes stats log output when exporting and importing oplogs
- Cleanup: Removed GCv1 implementation
- Feature: Added interpretation of ReferencedSet op written by the cooker.
- The ReferencedSet specifies which ops in the oplog were reachable by the most recent incremental cook and should be staged.
diff --git a/src/zenserver/projectstore/fileremoteprojectstore.cpp b/src/zenserver/projectstore/fileremoteprojectstore.cpp
index 5c7a5536a..7d6c43c1e 100644
--- a/src/zenserver/projectstore/fileremoteprojectstore.cpp
+++ b/src/zenserver/projectstore/fileremoteprojectstore.cpp
@@ -295,13 +295,13 @@ private:
bool m_EnableBlocks = true;
bool m_UseTempBlocks = false;
- std::atomic_uint64_t m_SentBytes;
- std::atomic_uint64_t m_ReceivedBytes;
- std::atomic_uint64_t m_RequestTimeNS;
- std::atomic_uint64_t m_RequestCount;
- std::atomic_uint64_t m_PeakSentBytes;
- std::atomic_uint64_t m_PeakReceivedBytes;
- std::atomic_uint64_t m_PeakBytesPerSec;
+ std::atomic_uint64_t m_SentBytes = {};
+ std::atomic_uint64_t m_ReceivedBytes = {};
+ std::atomic_uint64_t m_RequestTimeNS = {};
+ std::atomic_uint64_t m_RequestCount = {};
+ std::atomic_uint64_t m_PeakSentBytes = {};
+ std::atomic_uint64_t m_PeakReceivedBytes = {};
+ std::atomic_uint64_t m_PeakBytesPerSec = {};
};
std::shared_ptr<RemoteProjectStore>
diff --git a/src/zenserver/projectstore/jupiterremoteprojectstore.cpp b/src/zenserver/projectstore/jupiterremoteprojectstore.cpp
index bede3abb4..d926499c4 100644
--- a/src/zenserver/projectstore/jupiterremoteprojectstore.cpp
+++ b/src/zenserver/projectstore/jupiterremoteprojectstore.cpp
@@ -298,13 +298,13 @@ private:
bool m_EnableBlocks = true;
bool m_UseTempBlocks = true;
- std::atomic_uint64_t m_SentBytes;
- std::atomic_uint64_t m_ReceivedBytes;
- std::atomic_uint64_t m_RequestTimeNS;
- std::atomic_uint64_t m_RequestCount;
- std::atomic_uint64_t m_PeakSentBytes;
- std::atomic_uint64_t m_PeakReceivedBytes;
- std::atomic_uint64_t m_PeakBytesPerSec;
+ std::atomic_uint64_t m_SentBytes = {};
+ std::atomic_uint64_t m_ReceivedBytes = {};
+ std::atomic_uint64_t m_RequestTimeNS = {};
+ std::atomic_uint64_t m_RequestCount = {};
+ std::atomic_uint64_t m_PeakSentBytes = {};
+ std::atomic_uint64_t m_PeakReceivedBytes = {};
+ std::atomic_uint64_t m_PeakBytesPerSec = {};
};
std::shared_ptr<RemoteProjectStore>
diff --git a/src/zenserver/projectstore/zenremoteprojectstore.cpp b/src/zenserver/projectstore/zenremoteprojectstore.cpp
index 679c344c6..c0082b746 100644
--- a/src/zenserver/projectstore/zenremoteprojectstore.cpp
+++ b/src/zenserver/projectstore/zenremoteprojectstore.cpp
@@ -304,13 +304,13 @@ private:
HttpClient m_Client;
- std::atomic_uint64_t m_SentBytes;
- std::atomic_uint64_t m_ReceivedBytes;
- std::atomic_uint64_t m_RequestTimeNS;
- std::atomic_uint64_t m_RequestCount;
- std::atomic_uint64_t m_PeakSentBytes;
- std::atomic_uint64_t m_PeakReceivedBytes;
- std::atomic_uint64_t m_PeakBytesPerSec;
+ std::atomic_uint64_t m_SentBytes = {};
+ std::atomic_uint64_t m_ReceivedBytes = {};
+ std::atomic_uint64_t m_RequestTimeNS = {};
+ std::atomic_uint64_t m_RequestCount = {};
+ std::atomic_uint64_t m_PeakSentBytes = {};
+ std::atomic_uint64_t m_PeakReceivedBytes = {};
+ std::atomic_uint64_t m_PeakBytesPerSec = {};
};
std::shared_ptr<RemoteProjectStore>