diff options
| author | Dan Engelbrecht <[email protected]> | 2025-11-27 16:05:56 +0100 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2025-11-27 16:05:56 +0100 |
| commit | 4984e8cd5c38cf77c8cb978f75f808bce0577f2d (patch) | |
| tree | c298828c6290a669500788f96f8ea25be41ff88a /src/zen/cmds/print_cmd.cpp | |
| parent | remove bad assert (#670) (diff) | |
| download | archived-zen-4984e8cd5c38cf77c8cb978f75f808bce0577f2d.tar.xz archived-zen-4984e8cd5c38cf77c8cb978f75f808bce0577f2d.zip | |
automatic scrub on startup (#667)
- Improvement: Deeper validation of data when scrub is activated (cas/cache/project)
- Improvement: Enabled more multi threading when running scrub operations
- Improvement: Added means to force a scrub operation at startup with a new release using ZEN_DATA_FORCE_SCRUB_VERSION variable in xmake.lua
Diffstat (limited to 'src/zen/cmds/print_cmd.cpp')
| -rw-r--r-- | src/zen/cmds/print_cmd.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/zen/cmds/print_cmd.cpp b/src/zen/cmds/print_cmd.cpp index 557808ba7..a4737e66d 100644 --- a/src/zen/cmds/print_cmd.cpp +++ b/src/zen/cmds/print_cmd.cpp @@ -97,8 +97,17 @@ PrintCommand::Run(const ZenCliOptions& GlobalOptions, int argc, char** argv) IoHash RawHash; uint64_t RawSize; - if (CompressedBuffer::ValidateCompressedHeader(Data, RawHash, RawSize)) + uint64_t CompressedSize; + if (CompressedBuffer::ValidateCompressedHeader(Data, RawHash, RawSize, &CompressedSize)) { + if (CompressedSize != Data.GetSize()) + { + ZEN_CONSOLE_WARN( + "Compressed binary header total compressed size mismatch. Payload is {} bytes and header says compressed payload is {} " + "bytes", + Data.GetSize(), + CompressedSize); + } ZEN_CONSOLE("Compressed binary: size {}, raw size {}, hash: {}", Data.GetSize(), RawSize, RawHash); } else if (IsPackageMessage(Data)) |