diff --git a/fdbserver/KeyValueStoreSQLite.actor.cpp b/fdbserver/KeyValueStoreSQLite.actor.cpp index 2b2af7103d..426a46acdf 100644 --- a/fdbserver/KeyValueStoreSQLite.actor.cpp +++ b/fdbserver/KeyValueStoreSQLite.actor.cpp @@ -98,7 +98,7 @@ struct PageChecksumCodec { // Always write a CRC32 checksum for new pages sum.part1 = 0; // Indicates CRC32 is being used sum.part2 = crc32c_append(0xfdbeefdb, static_cast(data), dataLen); - memcpy(pSumInPage, &sum, sizeof(SumType)); + *pSumInPage = sum; return true; }