From 2d6015a0a8c1e21e3dc4db2890b607768b0bce5b Mon Sep 17 00:00:00 2001 From: gholt Date: Wed, 22 Sep 2010 13:07:15 -0700 Subject: [PATCH] Fixed bug where the object auditor hadn't been calling invalidate_hash --- swift/obj/auditor.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/swift/obj/auditor.py b/swift/obj/auditor.py index 2e41a54f31..88a71ead27 100644 --- a/swift/obj/auditor.py +++ b/swift/obj/auditor.py @@ -23,6 +23,7 @@ from urllib import quote from eventlet import Timeout from swift.obj import server as object_server +from swift.obj.replicator import invalidate_hash from swift.common.bufferedhttp import http_connect from swift.common.exceptions import ConnectionTimeout from swift.common.ring import Ring @@ -168,6 +169,7 @@ class ObjectAuditor(Daemon): self.quarantines += 1 self.logger.error('ERROR Object %s failed audit and will be ' 'quarantined: %s' % (df.datadir, err)) + invalidate_hash(os.path.dirname(df.datadir)) renamer(df.datadir, os.path.join(self.devices, device, 'quarantined', 'objects', os.path.basename(df.datadir))) return