diff options
author | Csaba Henk <csaba@redhat.com> | 2012-04-04 03:42:31 +0200 |
---|---|---|
committer | Vijay Bellur <vijay@gluster.com> | 2012-04-05 05:12:59 -0700 |
commit | 73e2c0dec5b432c788cd80c4210b887517188f3d (patch) | |
tree | b6e938dbe0a27dd9cc74674b97e50e81b692513e /xlators | |
parent | bd83e10deec2e7dcd289ca30d2a3de19e0d59c30 (diff) |
geo-rep / gsyncd: shuffle directory entries in crawl
In order to randomize the walk of the file tree.
Change-Id: I9fc3b83d5804914a50faae8df7dbcfed2ba6f4b4
BUG: 809675
Signed-off-by: Csaba Henk <csaba@redhat.com>
Reviewed-on: http://review.gluster.com/3079
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
Diffstat (limited to 'xlators')
-rw-r--r-- | xlators/features/marker/utils/syncdaemon/master.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/features/marker/utils/syncdaemon/master.py b/xlators/features/marker/utils/syncdaemon/master.py index cd470f315..14d732728 100644 --- a/xlators/features/marker/utils/syncdaemon/master.py +++ b/xlators/features/marker/utils/syncdaemon/master.py @@ -2,6 +2,7 @@ import os import sys import time import stat +import random import signal import logging import errno @@ -336,6 +337,7 @@ class GMaster(object): except OSError: self.add_failjob(path, 'local-entries-fail') return + random.shuffle(dem) try: des = self.slave.server.entries(path) except OSError: |