DevFID size caching for fsck with checksumming
commite596d524aeda5d4beb3510fba1498dd75231a2bb
authorEric Wong <normalperson@yhbt.net>
Tue, 13 Mar 2012 22:42:35 +0000 (13 15:42 -0700)
committerdormando <dormando@rydia.net>
Fri, 30 Mar 2012 00:11:35 +0000 (29 17:11 -0700)
tree4f214d61e583d9725073018c40c2c62a37a9dcab
parenta4af4caf2ecb896961fa111797cc2fe5be46aeeb
DevFID size caching for fsck with checksumming

The digest path relies on having a known file size to calculate
the MD5 timeout, so save an HTTP HEAD request since we always
check file sizes in fsck before we checksum the file.
lib/MogileFS/DevFID.pm
lib/MogileFS/HTTPFile.pm