From 8597e9848093d30d894609b59a625da4c35e4949 Mon Sep 17 00:00:00 2001 From: dormando Date: Wed, 31 Mar 2010 00:12:54 +0000 Subject: [PATCH] Fix warnings when rebalancing FIDs on busy network When you have rebalance working across a busy network, then the size check of all the copies of the fid can fail, causing a warning to be issued. (Tomas Doran) git-svn-id: http://code.sixapart.com/svn/mogilefs/trunk@1421 f67b2e87-0811-0410-a7e0-dd94e48410d6 --- lib/MogileFS/DevFID.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/MogileFS/DevFID.pm b/lib/MogileFS/DevFID.pm index 787269e1..6211a905 100644 --- a/lib/MogileFS/DevFID.pm +++ b/lib/MogileFS/DevFID.pm @@ -73,6 +73,8 @@ sub size_matches { my $fid = $self->fid; my $disk_size = $self->size_on_disk; + # Temporary connectivity error with that disk/machine.. + return 0 unless defined $disk_size; return 0 if $disk_size == MogileFS::HTTPFile::FILE_MISSING; return $disk_size == $fid->length;