Mass nuke unused code and fix most tests
commitebf8a5a8dc9b4452671f7816b99583bf7934e9b1
authordormando <dormando@rydia.net>
Thu, 26 May 2011 02:28:38 +0000 (25 19:28 -0700)
committerdormando <dormando@rydia.net>
Wed, 1 Jun 2011 22:15:57 +0000 (1 15:15 -0700)
tree83bde89ec8ff4707ac77e4d309087003a3497053
parent3db8a84930417ded2d3ed73a2c6bf8aeb8da4edf
Mass nuke unused code and fix most tests

t/multiple-hosts-replpol.t needs more work before it passes again.

Kindly noting that FSCK and a few things don't have coverage.

fix replpolicy tests

Restore default class "0"

Also fix calls from mogfileinfo and mogfiledebug

Clean some vestigial Monitor worker code

Fix diff_hash. Splitting the tests out into one-per-line so we can get better errors if it
ever fails again, also easier to read.
20 files changed:
lib/MogileFS/Class.pm [moved from lib/MogileFS/NewClass.pm with 94% similarity]
lib/MogileFS/DevFID.pm
lib/MogileFS/Device.pm [moved from lib/MogileFS/NewDevice.pm with 94% similarity]
lib/MogileFS/Domain.pm [moved from lib/MogileFS/NewDomain.pm with 91% similarity]
lib/MogileFS/Factory.pm
lib/MogileFS/Factory/Class.pm
lib/MogileFS/Factory/Device.pm
lib/MogileFS/Factory/Domain.pm
lib/MogileFS/Factory/Host.pm
lib/MogileFS/Host.pm [moved from lib/MogileFS/NewHost.pm with 92% similarity]
lib/MogileFS/Server.pm
lib/MogileFS/Worker/Monitor.pm
lib/MogileFS/Worker/Query.pm
lib/MogileFS/Worker/Replicate.pm
t/01-domain-class.t
t/02-host-device.t
t/domains-classes.t [deleted file]
t/hosts-devices.t [deleted file]
t/multiple-hosts-replpol.t
t/store.t