1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2024-07-05 00:26:51 +02:00

avoid dead lock from dataFileAccessLock

fix https://github.com/chrislusf/seaweedfs/issues/1043
This commit is contained in:
Chris Lu 2019-08-15 09:24:54 -07:00
parent 3cef29cbc3
commit f9c1cd7370

View file

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