diff options
| author | chrislu <chris.lu@gmail.com> | 2025-08-17 23:31:06 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2025-08-17 23:31:06 -0700 |
| commit | e343035d6780c848ab832f358ddf70d5b32c6135 (patch) | |
| tree | feeb02c7496f40aa025ab7f06f6bfa7042f06ccf | |
| parent | f2ec975b7300d22e63108cd2128ed2695a8eb9b7 (diff) | |
| download | seaweedfs-e343035d6780c848ab832f358ddf70d5b32c6135.tar.xz seaweedfs-e343035d6780c848ab832f358ddf70d5b32c6135.zip | |
set MaxVolumeCount
| -rw-r--r-- | weed/storage/store.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/weed/storage/store.go b/weed/storage/store.go index 107396231..fa5040ebe 100644 --- a/weed/storage/store.go +++ b/weed/storage/store.go @@ -688,6 +688,7 @@ func (s *Store) MaybeAdjustVolumeMax() (hasChanges bool) { diskLocation.Directory, maxVolumeCount, unclaimedSpaces/1024/1024, unusedSpace/1024/1024, volumeSizeLimit/1024/1024) hasChanges = hasChanges || currentMaxVolumeCount != atomic.LoadInt32(&diskLocation.MaxVolumeCount) } else { + atomic.StoreInt32(&diskLocation.MaxVolumeCount, diskLocation.OriginalMaxVolumeCount) newMaxVolumeCount = newMaxVolumeCount + diskLocation.OriginalMaxVolumeCount } } |
