From c0139158ae8992513e93932d8670b5db8605ead2 Mon Sep 17 00:00:00 2001 From: Csaba Henk Date: Wed, 13 Apr 2011 01:46:00 +0000 Subject: syncdaemon: minor fixes - whitespace fix - remove superfluous imports Signed-off-by: Csaba Henk Signed-off-by: Anand Avati BUG: 1570 (geosync related changes) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1570 --- xlators/features/marker/utils/syncdaemon/master.py | 3 +-- xlators/features/marker/utils/syncdaemon/repce.py | 2 +- xlators/features/marker/utils/syncdaemon/resource.py | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) (limited to 'xlators/features/marker/utils') diff --git a/xlators/features/marker/utils/syncdaemon/master.py b/xlators/features/marker/utils/syncdaemon/master.py index fd5a2dcda..f6403fcf6 100644 --- a/xlators/features/marker/utils/syncdaemon/master.py +++ b/xlators/features/marker/utils/syncdaemon/master.py @@ -1,6 +1,5 @@ import os import sys -import threading import time import stat import signal @@ -106,7 +105,7 @@ class GMaster(object): gap = min(10, gap) self.slave.server.keep_alive(vi) time.sleep(gap) - t = threading.Thread(target=keep_alive) + t = Thread(target=keep_alive) t.setDaemon(True) t.start() while True: diff --git a/xlators/features/marker/utils/syncdaemon/repce.py b/xlators/features/marker/utils/syncdaemon/repce.py index 1b8d0203c..8b7e0ae94 100644 --- a/xlators/features/marker/utils/syncdaemon/repce.py +++ b/xlators/features/marker/utils/syncdaemon/repce.py @@ -57,7 +57,7 @@ class RepceServer(object): while True: self.q.put(recv(self.inf)) except EOFError: - logging.info("terminating on reaching EOF.") + logging.info("terminating on reaching EOF.") def worker(self): while True: diff --git a/xlators/features/marker/utils/syncdaemon/resource.py b/xlators/features/marker/utils/syncdaemon/resource.py index d172462a7..09ab9c3a4 100644 --- a/xlators/features/marker/utils/syncdaemon/resource.py +++ b/xlators/features/marker/utils/syncdaemon/resource.py @@ -11,7 +11,6 @@ import socket import logging import tempfile import threading -import time from ctypes import * from ctypes.util import find_library from errno import EEXIST, ENOENT, ENODATA, ENOTDIR, ELOOP, EISDIR -- cgit