diff options
Diffstat (limited to 'xlators')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-brick-ops.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-brick-ops.c b/xlators/mgmt/glusterd/src/glusterd-brick-ops.c index 55554fe6e..f5181f367 100644 --- a/xlators/mgmt/glusterd/src/glusterd-brick-ops.c +++ b/xlators/mgmt/glusterd/src/glusterd-brick-ops.c @@ -1141,6 +1141,9 @@ glusterd_op_stage_add_brick (dict_t *dict, char **op_errstr) if (!ret) { gf_log (THIS->name, GF_LOG_ERROR, "Adding duplicate brick: %s", brick); + snprintf (msg, sizeof (msg), "Brick %s is already a " + "part of the volume", brick); + *op_errstr = gf_strdup (msg); ret = -1; goto out; } else { |