]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commit
log_writer: conditionally adjust crc
authorSage Weil <sage@redhat.com>
Thu, 8 Oct 2015 17:08:16 +0000 (13:08 -0400)
committerSage Weil <sage@redhat.com>
Thu, 8 Oct 2015 17:41:06 +0000 (13:41 -0400)
commite24306f58ba323d8a4d2b6f6e61552be257d5312
tree42f016b2d73da88466e98c23c75c6b5744895d59
parent31d3a82eb1f0d47f84804f7465b45f41b6374daa
log_writer: conditionally adjust crc

If recycle_log_files is enabled, XOR the log_number into the message CRC in
the log.  This ensures that if we read a recycled log and see an old event
from a previous incarnation of the log we will fail the CRC check.

Signed-off-by: Sage Weil <sage@redhat.com>
db/log_writer.cc