summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-scrub-svc.c
diff options
context:
space:
mode:
authorGaurav Kumar Garg <ggarg@redhat.com>2015-04-23 18:44:30 +0530
committerKaushal M <kaushal@redhat.com>2015-05-03 22:17:17 -0700
commitf81deb95db417eeededf7442a30304a880cc8169 (patch)
tree49c4d04d2f00cc601ecc30bc32b1b45524c88913 /xlators/mgmt/glusterd/src/glusterd-scrub-svc.c
parent7c4d103700f0bbe0c5e134f743a68f370e5600be (diff)
features/bitrot: Per volume bitrot translator
Currently whatever bitrot/scrubber tunable value user set for one volume that value is considering for all other volumes also. Each volume should act on their respective bitrot/scrubber tunable value. For handling bitrot/scrubber tunable value independently with respect to all the volume bitrot and scrubber translator should run seperatly for each volume. Change-Id: I1d9379508afe6cfd2f78e3ebf29c829c362d84a9 BUG: 1170075 Signed-off-by: Gaurav Kumar Garg <ggarg@redhat.com> Reviewed-on: http://review.gluster.org/10352 Reviewed-by: Venky Shankar <vshankar@redhat.com> Tested-by: Venky Shankar <vshankar@redhat.com> Reviewed-by: Atin Mukherjee <amukherj@redhat.com> Reviewed-by: Kaushal M <kaushal@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-scrub-svc.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-scrub-svc.c19
1 files changed, 2 insertions, 17 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-scrub-svc.c b/xlators/mgmt/glusterd/src/glusterd-scrub-svc.c
index 9b72053e89c..987acb60955 100644
--- a/xlators/mgmt/glusterd/src/glusterd-scrub-svc.c
+++ b/xlators/mgmt/glusterd/src/glusterd-scrub-svc.c
@@ -32,37 +32,22 @@ glusterd_scrubsvc_create_volfile ()
char filepath[PATH_MAX] = {0,};
int ret = -1;
glusterd_conf_t *conf = NULL;
- dict_t *mod_dict = NULL;
xlator_t *this = NULL;
this = THIS;
conf = this->private;
GF_ASSERT (conf);
-
- mod_dict = dict_new ();
- if (!mod_dict) {
- gf_log (this->name, GF_LOG_ERROR, "failed to allocate new "
- "dict");
- goto out;
- }
-
- ret = dict_set_uint32 (mod_dict, "trusted-client", GF_CLIENT_TRUSTED);
- if (ret)
- goto free_dict;
-
glusterd_svc_build_volfile_path (scrub_svc_name, conf->workdir,
filepath, sizeof (filepath));
ret = glusterd_create_global_volfile (build_scrub_graph,
- filepath, mod_dict);
+ filepath, NULL);
if (ret) {
gf_log (this->name, GF_LOG_ERROR, "Failed to create volfile");
- goto free_dict;
+ goto out;
}
-free_dict:
- dict_unref (mod_dict);
out:
gf_log (this->name, GF_LOG_DEBUG, "Returning %d", ret);