Always perform checksum comparison (for disk corruption) when possible.
authorMichael Vrable <vrable@cs.hmc.edu>
Wed, 10 Sep 2014 21:36:18 +0000 (14:36 -0700)
committerMichael Vrable <vrable@cs.hmc.edu>
Wed, 10 Sep 2014 21:36:18 +0000 (14:36 -0700)
commit42113f2be5d9d3c6f1f2bcedcea3518efe2bdcf2
treeded0715674bc53800c0e0d69a3283d382583d504
parentae5a596823b8ca4860f4487f5e228e93f73bb050
Always perform checksum comparison (for disk corruption) when possible.

If the statcache indicates that a file should be unchanged, but we have
read the file contents anyway (generally, because this was needed for
segment cleaning), then comparing the old and new checksums is basically
free.  Do so, and report any discrepancies as they may indicate on-disk
corruption.
main.cc