From 01b3dff29adee2041b0ef1b374eda8c88fb07678 Mon Sep 17 00:00:00 2001 From: Csaba Henk Date: Sat, 2 Apr 2011 19:40:49 +0000 Subject: syncdaemon: add monitor mode to support autorestart Signed-off-by: Csaba Henk Signed-off-by: Vijay Bellur BUG: 2537 (gsync autorestart) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2537 --- xlators/features/marker/utils/syncdaemon/syncdutils.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'xlators/features/marker/utils/syncdaemon/syncdutils.py') diff --git a/xlators/features/marker/utils/syncdaemon/syncdutils.py b/xlators/features/marker/utils/syncdaemon/syncdutils.py index 723ab8fb5..5c17d0579 100644 --- a/xlators/features/marker/utils/syncdaemon/syncdutils.py +++ b/xlators/features/marker/utils/syncdaemon/syncdutils.py @@ -40,3 +40,11 @@ def update_file(path, updater, merger = lambda f: True): for fx in (fr, fw): if fx: fx.close() + + +class FreeObject(object): + """wildcard class for which any attribute can be set""" + + def __init__(self, **kw): + for k,v in kw.iteritems(): + setattr(self, k, v) -- cgit