diff options
| author | Chris Lu <chris.lu@gmail.com> | 2019-06-16 02:24:15 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2019-06-16 02:24:15 -0700 |
| commit | 289fd7eb39a9150b392a8e29596f9b85ace0534c (patch) | |
| tree | aa6d6f725b577174a75538169f4b4dc59ea6c4a1 /weed/storage/volume.go | |
| parent | ff6a6dd11e55e89dfeed0eb31da8a20a7e7e6e9f (diff) | |
| download | seaweedfs-289fd7eb39a9150b392a8e29596f9b85ace0534c.tar.xz seaweedfs-289fd7eb39a9150b392a8e29596f9b85ace0534c.zip | |
count number of volumes and ec shards
Diffstat (limited to 'weed/storage/volume.go')
| -rw-r--r-- | weed/storage/volume.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/weed/storage/volume.go b/weed/storage/volume.go index 44e96015e..f3d5b9922 100644 --- a/weed/storage/volume.go +++ b/weed/storage/volume.go @@ -4,6 +4,7 @@ import ( "fmt" "github.com/chrislusf/seaweedfs/weed/pb/master_pb" + "github.com/chrislusf/seaweedfs/weed/stats" "github.com/chrislusf/seaweedfs/weed/storage/needle" "os" @@ -102,6 +103,7 @@ func (v *Volume) Close() { if v.dataFile != nil { _ = v.dataFile.Close() v.dataFile = nil + stats.VolumeServerVolumeCounter.Dec() } } |
