summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaghavendra Bhat <raghavendra@redhat.com>2013-10-30 14:00:18 +0530
committershishir gowda <sgowda@redhat.com>2013-11-15 14:45:13 +0530
commitce33e19de719a0454ff9ebe9acd264f0568c718e (patch)
treed83b265eb91053714b64b196be13f9de52f8d1f7
parent05988c1e68e90d89b976ed787c6d89fb9edc3f76 (diff)
mgmt/glusterd: do not assert if op_errstr is NULL in snapshot config ops
* op_errstr is allocated and set while returning if there is any error Change-Id: I6e0de80d611aeeee3d25e8c20ab49b8ef42b0bf5 Signed-off-by: Raghavendra Bhat <raghavendra@redhat.com>
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-snapshot.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-snapshot.c b/xlators/mgmt/glusterd/src/glusterd-snapshot.c
index d39f641..c362456 100644
--- a/xlators/mgmt/glusterd/src/glusterd-snapshot.c
+++ b/xlators/mgmt/glusterd/src/glusterd-snapshot.c
@@ -408,7 +408,6 @@ glusterd_snapshot_config_limit_prevalidate (dict_t *dict, char **op_errstr,
GF_ASSERT (this);
GF_ASSERT (dict);
- GF_ASSERT (*op_errstr);
conf = this->private;
@@ -3022,7 +3021,6 @@ glusterd_snapshot_config_commit (dict_t *dict, char **op_errstr,
GF_ASSERT (this);
GF_ASSERT (dict);
- GF_ASSERT (*op_errstr);
GF_ASSERT (rsp_dict);
conf = this->private;