Sage Weil [Tue, 29 Sep 2015 02:51:45 +0000 (22:51 -0400)]
db/log_reader: handle modified CRCs
If we detect a CRC error on the first record of a log file, check to see
whether the CRC has the log_number mixed in. If so, we set the recycled_
flag, and thereafter assume that the CRC will have log_number mixed in.
This raises our probability of a false-positive CRC to 2/2^32 only
for the first record, but leaves it at 1/2^32 for the rest of each file.