From: Michael Vrable Date: Mon, 26 Sep 2011 03:40:35 +0000 (-0700) Subject: Cleaner updates X-Git-Url: https://git.vrable.net/?a=commitdiff_plain;h=63bc8919d5c02cf1c1179ed3528a0dfeee8e7454;p=bluesky.git Cleaner updates --- diff --git a/cleaner/cleaner b/cleaner/cleaner index 60c91f5..9cdba54 100755 --- a/cleaner/cleaner +++ b/cleaner/cleaner @@ -83,6 +83,7 @@ def retry_wrap(method): return method(self, *args, **kwargs) except: print >>sys.stderr, "S3 operation failed, retrying..." + print >>sys.stderr, " %s %s %s" % (method, args, kwargs) self.connect() time.sleep(1.0) return method(self, *args, **kwargs) @@ -98,7 +99,7 @@ class S3Backend(Backend): self.cache = {} for f in os.listdir(cachedir): self.cache[f] = True - print "Initial cache contents:", list(self.cache.keys()) + #print "Initial cache contents:", list(self.cache.keys()) self.connect() self.stats_get = [0, 0] self.stats_put = [0, 0] @@ -284,7 +285,7 @@ class LogDirectory: self.dir_num = dir self.seq_num = 0 for logname in backend.list(dir): - print "Old log file:", logname + #print "Old log file:", logname loc = backend.name_to_loc(logname[0]) if loc is not None and loc[0] == dir: self.seq_num = max(self.seq_num, loc[1] + 1) @@ -443,12 +444,12 @@ class InodeMap: data = data[self.vvsize:] - print "Inode map:" + #print "Inode map:" for i in range(len(data) // 16): (start, end) = struct.unpack_from("