diff options
| author | wusong <75450248+wusongANKANG@users.noreply.github.com> | 2023-06-06 01:17:21 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-05 10:17:21 -0700 |
| commit | 26f15d007977bd048c1908d9b2e11d512699b007 (patch) | |
| tree | fc789376e6b554bddd5393fcf0f357c8ab73e83d /weed/server/volume_grpc_admin.go | |
| parent | fb4b61036cd6389b18efc5343b766b1c5512ad1c (diff) | |
| download | seaweedfs-26f15d007977bd048c1908d9b2e11d512699b007.tar.xz seaweedfs-26f15d007977bd048c1908d9b2e11d512699b007.zip | |
Fix no more writable volumes by delay judgment (#4548)
* fix nomore writables volumes while disk free space is sufficient by time delay
* reset
---------
Co-authored-by: wang wusong <wangwusong@virtaitech.com>
Diffstat (limited to 'weed/server/volume_grpc_admin.go')
| -rw-r--r-- | weed/server/volume_grpc_admin.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/weed/server/volume_grpc_admin.go b/weed/server/volume_grpc_admin.go index 7ba9f72c9..b4748c276 100644 --- a/weed/server/volume_grpc_admin.go +++ b/weed/server/volume_grpc_admin.go @@ -237,7 +237,9 @@ func (vs *VolumeServer) VolumeStatus(ctx context.Context, req *volume_server_pb. return nil, fmt.Errorf("not found volume id %d", req.VolumeId) } + volumeSize, _, _ := v.DataBackend.GetStat() resp.IsReadOnly = v.IsReadOnly() + resp.VolumeSize = uint64(volumeSize) return resp, nil } |
