summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr/src/afr.h
diff options
context:
space:
mode:
authorAravinda VK <avishwan@redhat.com>2016-06-23 11:53:36 +0530
committerAravinda VK <avishwan@redhat.com>2016-07-28 03:46:24 -0700
commitdeaecdf4320be44ae4a8300c969f724582959067 (patch)
tree3cbc29ffc0f59c09e1765f4ed0b2c55d476fe9aa /xlators/cluster/afr/src/afr.h
parentbda4a2be0bba608d61bd04815e92b2d4cc63e7f2 (diff)
geo-rep: Handle Config parser errors
Python ConfigParser lib has two methods, readfp and read, it should be used as follows. readfp(open("defaults.conf")) read("custom.conf") ConfigParser.read(path) ignores any file errors, which is intentional since errors are handled while loading default config. Geo-rep uses only one config file(Session config in Master side and Template config on Slave side) so we should use readfp to avoid skipping OS errors. config.read is retained in case of `--config-set-rx` where glusterd creates new template config file. BUG: 1357759 Change-Id: I15a14d3743facd7b8c7af0edc70fdefaa43efd04 Signed-off-by: Aravinda VK <avishwan@redhat.com> Reviewed-on: http://review.gluster.org/14777 (cherry picked from commit d94bf608b16b82f2c8f8588a96459cb746773b32) Reviewed-on: http://review.gluster.org/14946 Smoke: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Kotresh HR <khiremat@redhat.com> CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Diffstat (limited to 'xlators/cluster/afr/src/afr.h')
0 files changed, 0 insertions, 0 deletions