diff options
| author | Aravinda VK <avishwan@redhat.com> | 2014-05-05 11:04:00 +0530 | 
|---|---|---|
| committer | Venky Shankar <vshankar@redhat.com> | 2014-05-09 00:17:59 -0700 | 
| commit | 65757e0f57f93103d87fdf9534c5ca25b66d14b7 (patch) | |
| tree | 9536b28ac93d7a45d76cd30c2aaa975b9ab26c62 /geo-replication/syncdaemon/resource.py | |
| parent | 93129e862a2dde291ddbf22fe30d955b25da6059 (diff) | |
geo-rep: Changelog History consumption more fixes
Number of parallel threads to process changelog history
is made configurable via sync_jobs
Change-Id: Idcd8e655d9df540cfa48648b9e98af941f95e9d0
Signed-off-by: Aravinda VK <avishwan@redhat.com>
Reviewed-on: http://review.gluster.org/7660
Reviewed-by: Venky Shankar <vshankar@redhat.com>
Tested-by: Venky Shankar <vshankar@redhat.com>
Diffstat (limited to 'geo-replication/syncdaemon/resource.py')
| -rw-r--r-- | geo-replication/syncdaemon/resource.py | 11 | 
1 files changed, 9 insertions, 2 deletions
diff --git a/geo-replication/syncdaemon/resource.py b/geo-replication/syncdaemon/resource.py index f0f6692cae2..185722f5df0 100644 --- a/geo-replication/syncdaemon/resource.py +++ b/geo-replication/syncdaemon/resource.py @@ -685,8 +685,9 @@ class Server(object):          Changes.cl_done(clfile)      @classmethod -    def history_changelog(cls, changelog_path, start, end): -        return Changes.cl_history_changelog(changelog_path, start, end) +    def history_changelog(cls, changelog_path, start, end, num_parallel): +        return Changes.cl_history_changelog(changelog_path, start, end, +                                            num_parallel)      @classmethod      def history_changelog_scan(cls): @@ -1312,6 +1313,12 @@ class GLUSTER(AbstractUrl, SlaveLocal, SlaveRemote):              # g3 ==> changelog History              g1.register()              try: +                (workdir, logfile) = g2.setup_working_dir() +                # register with the changelog library +                # 9 == log level (DEBUG) +                # 5 == connection retries +                brickserver.changelog_register(gconf.local_path, +                                               workdir, logfile, 9, 5)                  g2.register()                  g3.register()              except ChangelogException as e:  | 
