summaryrefslogtreecommitdiff
path: root/swift/obj/auditor.py
diff options
context:
space:
mode:
authorMatthew Oliver <matt@oliver.net.au>2021-03-31 15:07:39 +1100
committerTim Burke <tim.burke@gmail.com>2021-06-29 15:22:57 -0700
commit85e36f7122b83d53b5ce931f72ebf6c6f6fdfaf4 (patch)
treece2c58c1ad2e6fa1307169e0d0f0c1b526d7e7c4 /swift/obj/auditor.py
parent8e1209d2b1b41193ddb3f616036d3a1475ed1210 (diff)
downloadswift-85e36f7122b83d53b5ce931f72ebf6c6f6fdfaf4.tar.gz
recon: refactor common recon names into a common location
Change-Id: I0a0766cfb6672377de0f152ce179c874c327ec54
Diffstat (limited to 'swift/obj/auditor.py')
-rw-r--r--swift/obj/auditor.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/swift/obj/auditor.py b/swift/obj/auditor.py
index e2f732d29..f3b2eab1a 100644
--- a/swift/obj/auditor.py
+++ b/swift/obj/auditor.py
@@ -33,6 +33,7 @@ from swift.common.utils import (
config_auto_int_value, dump_recon_cache, get_logger, list_from_csv,
listdir, load_pkg_resource, parse_prefixed_conf, ratelimit_sleep,
readconf, round_robin_iter, unlink_paths_older_than, PrefixLoggerAdapter)
+from swift.common.recon import RECON_OBJECT_FILE, DEFAULT_RECON_CACHE_PATH
class AuditorWorker(object):
@@ -321,8 +322,8 @@ class ObjectAuditor(Daemon):
self.conf_zero_byte_fps = int(
conf.get('zero_byte_files_per_second', 50))
self.recon_cache_path = conf.get('recon_cache_path',
- '/var/cache/swift')
- self.rcache = join(self.recon_cache_path, "object.recon")
+ DEFAULT_RECON_CACHE_PATH)
+ self.rcache = join(self.recon_cache_path, RECON_OBJECT_FILE)
self.interval = float(conf.get('interval', 30))
watcher_names = set(list_from_csv(conf.get('watchers', '')))