diff options
Diffstat (limited to 'glusterfsd/src/glusterfsd-mgmt.c')
-rw-r--r-- | glusterfsd/src/glusterfsd-mgmt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/glusterfsd/src/glusterfsd-mgmt.c b/glusterfsd/src/glusterfsd-mgmt.c index 3228c27c6aa..8b25f3a1525 100644 --- a/glusterfsd/src/glusterfsd-mgmt.c +++ b/glusterfsd/src/glusterfsd-mgmt.c @@ -826,10 +826,10 @@ glusterfs_handle_bitrot (rpcsvc_request_t *req) goto out; } - if (!strncmp (scrub_opt, "status", strlen ("status"))) { + if (!strncmp (scrub_opt, "status", SLEN ("status"))) { ret = xlator->notify (xlator, GF_EVENT_SCRUB_STATUS, input, output); - } else if (!strncmp (scrub_opt, "ondemand", strlen ("ondemand"))) { + } else if (!strncmp (scrub_opt, "ondemand", SLEN ("ondemand"))) { ret = xlator->notify (xlator, GF_EVENT_SCRUB_ONDEMAND, input, output); if (ret == -2) { |