aboutsummaryrefslogtreecommitdiff
path: root/weed/storage/volume.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/storage/volume.go')
-rw-r--r--weed/storage/volume.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/weed/storage/volume.go b/weed/storage/volume.go
index b495b379d..dd8ecbdce 100644
--- a/weed/storage/volume.go
+++ b/weed/storage/volume.go
@@ -51,6 +51,7 @@ type Volume struct {
volumeInfoRWLock sync.RWMutex
volumeInfo *volume_server_pb.VolumeInfo
location *DiskLocation
+ diskId uint32 // ID of this volume's disk in Store.Locations array
lastIoError error
}
@@ -337,6 +338,7 @@ func (v *Volume) ToVolumeInformationMessage() (types.NeedleId, *master_pb.Volume
CompactRevision: uint32(v.SuperBlock.CompactionRevision),
ModifiedAtSecond: modTime.Unix(),
DiskType: string(v.location.DiskType),
+ DiskId: v.diskId,
}
volumeInfo.RemoteStorageName, volumeInfo.RemoteStorageKey = v.RemoteStorageNameKey()