count number of volumes and ec shards

This commit is contained in:
Chris Lu
2019-06-16 02:24:15 -07:00
parent ff6a6dd11e
commit 289fd7eb39
5 changed files with 20 additions and 0 deletions

View File

@@ -5,6 +5,7 @@ import (
"os"
"time"
"github.com/chrislusf/seaweedfs/weed/stats"
"github.com/chrislusf/seaweedfs/weed/storage/needle"
"github.com/syndtr/goleveldb/leveldb/opt"
@@ -116,6 +117,8 @@ func (v *Volume) load(alsoLoadIndex bool, createDatIfMissing bool, needleMapKind
}
}
stats.VolumeServerVolumeCounter.Inc()
return e
}