diff options
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-brick-ops.c')
-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 55554fe6ee4..f5181f3673a 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 { |