Skip to content

Commit ae0cee4

Browse files
committed
crc32c
1 parent eccc376 commit ae0cee4

File tree

1 file changed

+2
-1
lines changed
  • server/src/main/java/org/elasticsearch/index/translog

1 file changed

+2
-1
lines changed

server/src/main/java/org/elasticsearch/index/translog/Translog.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
import java.util.regex.Pattern;
7474
import java.util.stream.Stream;
7575
import java.util.zip.CRC32;
76+
import java.util.zip.CRC32C;
7677
import java.util.zip.Checksum;
7778

7879
import static org.elasticsearch.core.Strings.format;
@@ -629,7 +630,7 @@ public Location add(final Operation operation) throws IOException {
629630
Serialized serialized = Serialized.create(
630631
header,
631632
operation instanceof Index index ? ReleasableBytesReference.unwrap(index.source()) : null,
632-
new CRC32()
633+
new CRC32C()
633634
);
634635

635636
readLock.lock();

0 commit comments

Comments
 (0)