From 731cf287d55887a0894c2b7abb950ecc2d685c61 Mon Sep 17 00:00:00 2001 From: Karan Mehta Date: Thu, 17 Oct 2019 17:52:19 -0700 Subject: [PATCH] Move checksum type bits to bit 2,3,4 --- .../apache/bookkeeper/client/api/WriteFlag.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/bookkeeper-server/src/main/java/org/apache/bookkeeper/client/api/WriteFlag.java b/bookkeeper-server/src/main/java/org/apache/bookkeeper/client/api/WriteFlag.java index c89187e0225..d2bf9f33cee 100644 --- a/bookkeeper-server/src/main/java/org/apache/bookkeeper/client/api/WriteFlag.java +++ b/bookkeeper-server/src/main/java/org/apache/bookkeeper/client/api/WriteFlag.java @@ -37,25 +37,25 @@ public enum WriteFlag { */ DEFERRED_SYNC(0x1 << 0), /** - * Bits 1,2,3 - value 0. + * Bits 2,3,4 - value 0. * Do not verify any checksum. */ - DIGEST_TYPE_DUMMY(0x0 << 1), + DIGEST_TYPE_DUMMY(0x0 << 2), /** - * Bits 1,2,3 - value 1. + * Bits 2,3,4 - value 1. * Use digest type CRC32,if checksum verification is enabled on bookie. */ - DIGEST_TYPE_CRC32(0x1 << 1), + DIGEST_TYPE_CRC32(0x1 << 2), /** - * Bits 1,2,3 - value 2. + * Bits 2,3,4 - value 2. * Use digest type MAC,if checksum verification is enabled on bookie. */ - DIGEST_TYPE_MAC(0x2 << 1), + DIGEST_TYPE_MAC(0x2 << 2), /** - * Bits 1,2,3 - value 3. + * Bits 2,3,4 - value 3. * Use digest type CRC32C,if checksum verification is enabled on bookie. */ - DIGEST_TYPE_CRC32C(0x3 << 1); + DIGEST_TYPE_CRC32C(0x3 << 2); /** * No flag is set, use default behaviour.