mirror of
https://github.com/minio/minio.git
synced 2024-12-25 14:45:54 -05:00
Updating disk storage for FS/Erasure mode (#6081)
Updating the disk storage stats for FS/Erasure coded backend
This commit is contained in:
parent
78abe5234e
commit
0bbdd02a57
@ -201,6 +201,7 @@ func (fs *FSObjects) diskUsage(doneCh chan struct{}) {
|
||||
if err := getDiskUsage(context.Background(), fs.fsPath, usageFn); err != nil {
|
||||
return
|
||||
}
|
||||
atomic.StoreInt32(&fs.usageRunning, 0)
|
||||
|
||||
for {
|
||||
select {
|
||||
|
@ -359,6 +359,7 @@ func (s *posix) diskUsage(doneCh chan struct{}) {
|
||||
if err := getDiskUsage(context.Background(), s.diskPath, usageFn); err != nil {
|
||||
return
|
||||
}
|
||||
atomic.StoreInt32(&s.usageRunning, 0)
|
||||
|
||||
for {
|
||||
select {
|
||||
|
Loading…
Reference in New Issue
Block a user