Updating disk storage for FS/Erasure mode (#6081)

Updating the disk storage stats for FS/Erasure coded backend
This commit is contained in:
Ashish Kumar Sinha 2018-06-25 23:16:48 +05:30 committed by kannappanr
parent 78abe5234e
commit 0bbdd02a57
2 changed files with 2 additions and 0 deletions

View File

@ -201,6 +201,7 @@ func (fs *FSObjects) diskUsage(doneCh chan struct{}) {
if err := getDiskUsage(context.Background(), fs.fsPath, usageFn); err != nil { if err := getDiskUsage(context.Background(), fs.fsPath, usageFn); err != nil {
return return
} }
atomic.StoreInt32(&fs.usageRunning, 0)
for { for {
select { select {

View File

@ -359,6 +359,7 @@ func (s *posix) diskUsage(doneCh chan struct{}) {
if err := getDiskUsage(context.Background(), s.diskPath, usageFn); err != nil { if err := getDiskUsage(context.Background(), s.diskPath, usageFn); err != nil {
return return
} }
atomic.StoreInt32(&s.usageRunning, 0)
for { for {
select { select {