Skip to content

Commit

Permalink
fix unclaimed spaces calculation when volumePreallocate is enabled (s…
Browse files Browse the repository at this point in the history
…eaweedfs#6063)

the calculation of `unclaimedSpaces` only needs to subtract `unusedSpace` when `preallocate` is not enabled.

Signed-off-by: LHHDZ <[email protected]>
  • Loading branch information
shichanglin5 authored Sep 25, 2024
1 parent d056c0d commit 4dc33cc
Show file tree
Hide file tree
Showing 5 changed files with 678 additions and 645 deletions.
1 change: 1 addition & 0 deletions weed/pb/master.proto
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ message HeartbeatResponse {
uint32 metrics_interval_seconds = 4;
repeated StorageBackend storage_backends = 5;
repeated string duplicated_uuids = 6;
bool preallocate = 7;
}

message VolumeInformationMessage {
Expand Down
Loading

0 comments on commit 4dc33cc

Please sign in to comment.