From f9c1cd73702d5dea7725fcb5401b061699843b2c Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Thu, 15 Aug 2019 09:24:54 -0700 Subject: [PATCH] avoid dead lock from dataFileAccessLock fix https://github.com/chrislusf/seaweedfs/issues/1043 --- weed/storage/volume_backup.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/storage/volume_backup.go b/weed/storage/volume_backup.go index e10990a9b..86d13da7a 100644 --- a/weed/storage/volume_backup.go +++ b/weed/storage/volume_backup.go @@ -23,7 +23,7 @@ func (v *Volume) GetVolumeSyncStatus() *volume_server_pb.VolumeSyncStatusRespons syncStatus.TailOffset = uint64(stat.Size()) } syncStatus.Collection = v.Collection - syncStatus.IdxFileSize = v.IndexFileSize() + syncStatus.IdxFileSize = v.nm.IndexFileSize() syncStatus.CompactRevision = uint32(v.SuperBlock.CompactionRevision) syncStatus.Ttl = v.SuperBlock.Ttl.String() syncStatus.Replication = v.SuperBlock.ReplicaPlacement.String()