diff options
| author | Stefan Boberg <[email protected]> | 2026-02-24 13:36:44 +0100 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2026-02-24 13:36:44 +0100 |
| commit | 075bac3ca870a1297e9f62230d56e63aec13a77d (patch) | |
| tree | 367a820685a829adbab31cd1374b1af2cece4b7e /src/zenstore/cache/cachedisklayer.cpp | |
| parent | Fix correctness and concurrency bugs found during code review (diff) | |
| download | zen-075bac3ca870a1297e9f62230d56e63aec13a77d.tar.xz zen-075bac3ca870a1297e9f62230d56e63aec13a77d.zip | |
Revert "Fix correctness and concurrency bugs found during code review"
This reverts commit 3c89c486338890ce39ddebe5be4722a09e85701a.
Diffstat (limited to 'src/zenstore/cache/cachedisklayer.cpp')
| -rw-r--r-- | src/zenstore/cache/cachedisklayer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zenstore/cache/cachedisklayer.cpp b/src/zenstore/cache/cachedisklayer.cpp index b73b3e6fb..ead7e4f3a 100644 --- a/src/zenstore/cache/cachedisklayer.cpp +++ b/src/zenstore/cache/cachedisklayer.cpp @@ -626,7 +626,7 @@ BucketManifestSerializer::ReadSidecarFile(RwLock::ExclusiveLockScope& B return false; } - const uint64_t ExpectedEntryCount = (FileSize - sizeof(BucketMetaHeader)) / sizeof(ManifestData); + const uint64_t ExpectedEntryCount = (FileSize - sizeof(sizeof(BucketMetaHeader))) / sizeof(ManifestData); if (Header.EntryCount > ExpectedEntryCount) { ZEN_WARN( @@ -1057,7 +1057,7 @@ ZenCacheDiskLayer::CacheBucket::ReadIndexFile(RwLock::ExclusiveLockScope&, const return 0; } - const uint64_t ExpectedEntryCount = (FileSize - sizeof(cache::impl::CacheBucketIndexHeader)) / sizeof(DiskIndexEntry); + const uint64_t ExpectedEntryCount = (FileSize - sizeof(sizeof(cache::impl::CacheBucketIndexHeader))) / sizeof(DiskIndexEntry); if (Header.EntryCount > ExpectedEntryCount) { return 0; |