fsck: avoid infinite wait on dead devices
commit2c50b8b0cbe48fcba064ca2b687e01c11c7b2601
authorEric Wong <e@80x24.org>
Wed, 7 Jun 2017 23:51:01 +0000 (7 23:51 +0000)
committerEric Wong <e@80x24.org>
Wed, 7 Jun 2017 23:57:28 +0000 (7 23:57 +0000)
tree2a45f5e3f71e5c7b4414a76ebeb058ca581660ac
parent6832b1b8514e2967c778bdfecec9f5f4b65567b8
fsck: avoid infinite wait on dead devices

If DevFID::size_on_disk encounters an unreadable (dead) device
AND there are no HTTP requests pending; we must ensure
Danga::Socket runs the PostLoopCallback to check if the event
loop is complete.  Do that by scheduling another timer to
run immediately.
lib/MogileFS/Worker/Fsck.pm