summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-scrub-svc.c
diff options
context:
space:
mode:
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);