From e343035d6780c848ab832f358ddf70d5b32c6135 Mon Sep 17 00:00:00 2001 From: chrislu Date: Sun, 17 Aug 2025 23:31:06 -0700 Subject: [PATCH] set MaxVolumeCount --- weed/storage/store.go | 1 + 1 file changed, 1 insertion(+) 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 } }