diff options
author | Csaba Henk <csaba@gluster.com> | 2011-04-15 02:26:24 +0000 |
---|---|---|
committer | Anand Avati <avati@gluster.com> | 2011-04-15 03:58:38 -0700 |
commit | dc75b9889d0dca8cde08860e96be1c88059644c6 (patch) | |
tree | 174302a7a5504a678a2cdf3bd77b09ed6299edff | |
parent | 78ca8b9fb8790f5741d5bf01aa870d7b77b9c57f (diff) |
syncdaemon: name tempdirs used by gsyncd more characteristically to ease debugging
Signed-off-by: Csaba Henk <csaba@gluster.com>
Signed-off-by: Anand Avati <avati@gluster.com>
BUG: 1570 (geosync related changes)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1570
-rw-r--r-- | xlators/features/marker/utils/syncdaemon/resource.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/features/marker/utils/syncdaemon/resource.py b/xlators/features/marker/utils/syncdaemon/resource.py index 2f42e9c446c..dbbb2d90289 100644 --- a/xlators/features/marker/utils/syncdaemon/resource.py +++ b/xlators/features/marker/utils/syncdaemon/resource.py @@ -399,7 +399,7 @@ class GLUSTER(AbstractUrl, SlaveLocal, SlaveRemote): return True def connect(self): - d = tempfile.mkdtemp() + d = tempfile.mkdtemp(prefix='gsyncd-aux-mount-') try: argv = gconf.gluster_command.split() + \ (gconf.gluster_log_level and ['-L', gconf.gluster_log_level] or []) + \ @@ -469,7 +469,7 @@ class SSH(AbstractUrl, SlaveRemote): def connect_remote(self, go_daemon=None): if go_daemon == 'done': return self.start_fd_client(*self.fd_pair) - gconf.setup_ssh_ctl(tempfile.mkdtemp()) + gconf.setup_ssh_ctl(tempfile.mkdtemp(prefix='gsyncd-aux-ssh-')) deferred = go_daemon == 'postconn' ret = sup(self, gconf.ssh_command.split() + gconf.ssh_ctl_args + [self.remote_addr], slave=self.inner_rsc.url, deferred=deferred) if deferred: |