This is an automated email from the ASF dual-hosted git repository.
nizhikov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite.git
The following commit(s) were added to refs/heads/master by this push:
new 6cb6dd2b1f4 IGNITE-17852 Fix incorrect for compression CRC assert
(#10298)
6cb6dd2b1f4 is described below
commit 6cb6dd2b1f499610f698a40433a2247306780e6d
Author: Nikolay <[email protected]>
AuthorDate: Mon Oct 10 15:06:32 2022 +0300
IGNITE-17852 Fix incorrect for compression CRC assert (#10298)
---
.../internal/processors/cache/persistence/file/FilePageStore.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/file/FilePageStore.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/file/FilePageStore.java
index 3baabc49107..931e41bc915 100755
---
a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/file/FilePageStore.java
+++
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/file/FilePageStore.java
@@ -734,7 +734,7 @@ public class FilePageStore implements PageStore {
}
// Check whether crc was calculated somewhere above the
stack if it is forcibly skipped.
- assert skipCrc || PageIO.getCrc(pageBuf) != 0 ||
calcCrc32(pageBuf, pageSize) == 0 :
+ assert skipCrc || PageIO.getCrc(pageBuf) != 0 ||
calcCrc32(pageBuf, getCrcSize(pageId, pageBuf)) == 0 :
"CRC hasn't been calculated, crc=0";
assert pageBuf.position() == 0 : pageBuf.position();