aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2024-10-22 14:12:20 +0200
committerGitHub Enterprise <[email protected]>2024-10-22 14:12:20 +0200
commit664538a2296cd09a362f22b3dfa346861ed024f2 (patch)
treee11bbf729f678387623751c198ad066e3e38faf0
parentUse a smaller thread pool during pre-cache phase of GC to reduce memory press... (diff)
downloadzen-664538a2296cd09a362f22b3dfa346861ed024f2.tar.xz
zen-664538a2296cd09a362f22b3dfa346861ed024f2.zip
fix gc date (#204)
* fix month conversion in ToDateTime
-rw-r--r--CHANGELOG.md5
-rw-r--r--src/zencore/include/zencore/compactbinarybuilder.h2
2 files changed, 4 insertions, 3 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 85b5f1022..10facc3be 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,7 @@
##
- Feature: Added command `zen cache-get` to fetch a cache value/record or an attachment from a cache record
+- 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.
- Feature: Added options `--bucketsize` and `--bucketsizes` to `zen cache-info` to get data sizes in cache buckets and attachments
- Improvement: Self-hosted dashboard
- Oplog entry view is more complete
@@ -9,9 +11,8 @@
- Improvement: Use a smaller thread pool during pre-cache phase of GC to reduce memory pressure
- 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
+- Bugfix: Properly calculate month for last gc times
- 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.
## 5.5.8
- Feature: Added option `gc-attachment-passes` to zenserver
diff --git a/src/zencore/include/zencore/compactbinarybuilder.h b/src/zencore/include/zencore/compactbinarybuilder.h
index 9c81cf490..1c625cacc 100644
--- a/src/zencore/include/zencore/compactbinarybuilder.h
+++ b/src/zencore/include/zencore/compactbinarybuilder.h
@@ -669,7 +669,7 @@ ToDateTime(std::chrono::system_clock::time_point TimePoint)
{
time_t Time = std::chrono::system_clock::to_time_t(TimePoint);
tm UTCTime = *gmtime(&Time);
- return DateTime(1900 + UTCTime.tm_year, UTCTime.tm_mon, UTCTime.tm_mday, UTCTime.tm_hour, UTCTime.tm_min, UTCTime.tm_sec);
+ return DateTime(1900 + UTCTime.tm_year, UTCTime.tm_mon + 1, UTCTime.tm_mday, UTCTime.tm_hour, UTCTime.tm_min, UTCTime.tm_sec);
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////