Skip to content

Commit

Permalink
add constant stripe_count value for upgrade scenerios
Browse files Browse the repository at this point in the history
Change-Id: I49f3da4f106c55f9da20d0b0a299275a19daf4ba
  • Loading branch information
Sheetalpamecha committed Dec 8, 2020
1 parent 709b130 commit 9ef5745
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions xlators/mgmt/glusterd/src/glusterd-handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -5833,6 +5833,7 @@ glusterd_get_state(rpcsvc_request_t *req, dict_t *dict)

fprintf(fp, "Volume%d.snap_count: %" PRIu64 "\n", count,
volinfo->snap_count);
fprintf(fp, "Volume%d.stripe_count: %d\n", count, STRIPE_COUNT);
fprintf(fp, "Volume%d.replica_count: %d\n", count,
volinfo->replica_count);
fprintf(fp, "Volume%d.subvol_count: %d\n", count,
Expand Down
2 changes: 1 addition & 1 deletion xlators/mgmt/glusterd/src/glusterd.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
#define GLUSTERD_SNAPS_MAX_SOFT_LIMIT_PERCENT 100
#define GLUSTERD_SERVER_QUORUM "server"
#define STATUS_STRLEN 128

#define STRIPE_COUNT 1
#define FMTSTR_CHECK_VOL_EXISTS "Volume %s does not exist"
#define FMTSTR_RESOLVE_BRICK "Could not find peer on which brick %s:%s resides"

Expand Down

0 comments on commit 9ef5745

Please sign in to comment.