glusterd: Fixed add-brick error message.
Change-Id: I9260d5a0203ae2990d37b30bcc7c94c81c1e168e BUG: 770678 Signed-off-by: Krishnan Parthasarathi <kp@gluster.com> Reviewed-on: http://review.gluster.com/2581 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Amar Tumballi <amar@gluster.com>
This commit is contained in:
parent
c66ced7d87
commit
ea275f8cfe
@ -130,7 +130,7 @@ gd_addbr_validate_stripe_count (glusterd_volinfo_t *volinfo, int stripe_count,
|
||||
case GF_CLUSTER_TYPE_STRIPE:
|
||||
case GF_CLUSTER_TYPE_STRIPE_REPLICATE:
|
||||
if (stripe_count < volinfo->stripe_count) {
|
||||
snprintf (err_str, sizeof (err_str),
|
||||
snprintf (err_str, err_len,
|
||||
"wrong stripe count (%d) given. "
|
||||
"already have %d",
|
||||
stripe_count, volinfo->stripe_count);
|
||||
@ -202,7 +202,7 @@ gd_addbr_validate_replica_count (glusterd_volinfo_t *volinfo, int replica_count,
|
||||
case GF_CLUSTER_TYPE_REPLICATE:
|
||||
case GF_CLUSTER_TYPE_STRIPE_REPLICATE:
|
||||
if (replica_count < volinfo->replica_count) {
|
||||
snprintf (err_str, sizeof (err_str),
|
||||
snprintf (err_str, err_len,
|
||||
"wrong replica count (%d) given. "
|
||||
"already have %d",
|
||||
replica_count, volinfo->replica_count);
|
||||
|
Loading…
x
Reference in New Issue
Block a user