summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-utils.c
diff options
context:
space:
mode:
authorPranith K <pranithk@gluster.com>2011-02-24 06:16:36 +0000
committerAnand V. Avati <avati@dev.gluster.com>2011-02-28 23:10:18 -0800
commit63f00588bbfd477c2f4579fd4392c14679dd7ac0 (patch)
treeca8c2cc33e2b89863a7eef7c683f5538dc75b21c /xlators/mgmt/glusterd/src/glusterd-utils.c
parent8a96aa607b4e3a6c782a0d912b6bf101f82f7c07 (diff)
mgmt/glusterd: prevent spurious cmd unlocks
Signed-off-by: Pranith Kumar K <pranithk@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 2460 ([glusterfs-3.2.0-gsync1]: gluserd crashed trying to access freed request) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2460
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-utils.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-utils.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c
index 6a709fc85c5..8da1b0646a7 100644
--- a/xlators/mgmt/glusterd/src/glusterd-utils.c
+++ b/xlators/mgmt/glusterd/src/glusterd-utils.c
@@ -1068,30 +1068,6 @@ out:
return ret;
}
-gf_boolean_t
-glusterd_is_cli_op_req (int32_t op)
-{
- switch (op) {
- case GD_MGMT_CLI_CREATE_VOLUME:
- case GD_MGMT_CLI_START_VOLUME:
- case GD_MGMT_CLI_STOP_VOLUME:
- case GD_MGMT_CLI_DELETE_VOLUME:
- case GD_MGMT_CLI_DEFRAG_VOLUME:
- case GD_MGMT_CLI_ADD_BRICK:
- case GD_MGMT_CLI_REMOVE_BRICK:
- case GD_MGMT_CLI_REPLACE_BRICK:
- case GD_MGMT_CLI_LOG_FILENAME:
- case GD_MGMT_CLI_LOG_LOCATE:
- case GD_MGMT_CLI_LOG_ROTATE:
- case GD_MGMT_CLI_SYNC_VOLUME:
- return _gf_true;
- break;
- }
-
- return _gf_false;
-}
-
-
int
glusterd_volume_compute_cksum (glusterd_volinfo_t *volinfo)
{