aboutsummaryrefslogtreecommitdiff
path: root/weed
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2019-08-15 09:24:54 -0700
committerChris Lu <chris.lu@gmail.com>2019-08-15 09:24:54 -0700
commitf9c1cd73702d5dea7725fcb5401b061699843b2c (patch)
tree92897612ac238655fc89257b171669b2f42f93c0 /weed
parent3cef29cbc371d3751efe157fa0284fa359b915d1 (diff)
downloadseaweedfs-f9c1cd73702d5dea7725fcb5401b061699843b2c.tar.xz
seaweedfs-f9c1cd73702d5dea7725fcb5401b061699843b2c.zip
avoid dead lock from dataFileAccessLock
fix https://github.com/chrislusf/seaweedfs/issues/1043
Diffstat (limited to 'weed')
-rw-r--r--weed/storage/volume_backup.go2
1 files changed, 1 insertions, 1 deletions
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()