diff options
author | Venky Shankar <vshankar@redhat.com> | 2014-03-19 19:32:15 +0530 |
---|---|---|
committer | Venky Shankar <vshankar@redhat.com> | 2014-06-10 09:55:55 -0700 |
commit | ec5d64eafcd77b1746b83173de16f7ec742af7a6 (patch) | |
tree | 0da4e4dded44f3f5031748f2ed96b249bfa0d04d /geo-replication/syncdaemon/gsyncd.py | |
parent | 99781d55f16373e793138c7b011eea09a62075b9 (diff) |
gsyncd / geo-rep: FSH recommended log locations
Upgrading "working_dir" on the fly is a bit unclean yet
(though it works) as currently config upgrade does not
support "old" values to be expanded by using configuration
variables.
Change-Id: I44ed65c281f2e0ce3b6b467addc5c1c88ac674e7
BUG: 1077516
Signed-off-by: Venky Shankar <vshankar@redhat.com>
Signed-off-by: Kotresh H R <khiremat@redhat.com>
Signed-off-by: Aravinda VK <avishwan@redhat.com>
Signed-off-by: Ajeet Jha <ajha@redhat.com>
Reviewed-on: http://review.gluster.org/7375
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'geo-replication/syncdaemon/gsyncd.py')
-rw-r--r-- | geo-replication/syncdaemon/gsyncd.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/geo-replication/syncdaemon/gsyncd.py b/geo-replication/syncdaemon/gsyncd.py index 7ddd51267a6..b307b87ae14 100644 --- a/geo-replication/syncdaemon/gsyncd.py +++ b/geo-replication/syncdaemon/gsyncd.py @@ -216,6 +216,10 @@ def main_i(): action='callback', callback=store_abs) op.add_option('-l', '--log-file', metavar='LOGF', type=str, action='callback', callback=store_abs) + op.add_option('--iprefix', metavar='LOGD', type=str, + action='callback', callback=store_abs) + op.add_option('--changelog-log-file', metavar='LOGF', type=str, + action='callback', callback=store_abs) op.add_option('--log-file-mbr', metavar='LOGF', type=str, action='callback', callback=store_abs) op.add_option('--state-file', metavar='STATF', type=str, @@ -253,6 +257,7 @@ def main_i(): op.add_option('--state-socket-unencoded', metavar='SOCKF', type=str, action='callback', callback=store_abs) op.add_option('--checkpoint', metavar='LABEL', default='') + # tunables for failover/failback mechanism: # None - gsyncd behaves as normal # blind - gsyncd works with xtime pairs to identify @@ -302,7 +307,9 @@ def main_i(): setattr( a[-1].values, 'log_file', '-'), setattr(a[-1].values, 'log_level', - 'DEBUG'))), + 'DEBUG'), + setattr(a[-1].values, + 'changelog_log_file', '-'))) op.add_option('--path', type=str, action='append') for a in ('check', 'get'): |