Browse Source

avoid dead lock from dataFileAccessLock

fix https://github.com/chrislusf/seaweedfs/issues/1043
pull/1045/head
Chris Lu 5 years ago
parent
commit
f9c1cd7370
  1. 2
      weed/storage/volume_backup.go

2
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()

Loading…
Cancel
Save