mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 10:07:28 +01:00
fix: preserve chunk layer in volume status reports
This commit is contained in:
1 parent
09b3fe445b
commit
ee334f66ff
1 file changed
+4
@@ -116,6 +116,9 @@ type DurableReport struct {
|
||||
HeadLSN uint64 `json:"head_lsn"`
|
||||
Closed bool `json:"closed"`
|
||||
Evidence string `json:"evidence,omitempty"`
|
||||
|
||||
// Chunk preserves the holder's chunk-layer status for walstore-chunk volumes.
|
||||
Chunk *durable.ChunkStatus `json:"chunk,omitempty"`
|
||||
}
|
||||
|
||||
type ResidueReport struct {
|
||||
@@ -287,6 +290,7 @@ func durableSnapshots(statuses []durable.VolumeStatus) []DurableReport {
|
||||
HeadLSN: st.HeadLSN,
|
||||
Closed: st.Closed,
|
||||
Evidence: st.Evidence,
|
||||
Chunk: st.Chunk,
|
||||
})
|
||||
}
|
||||
return out
|
||||
|
||||
Reference in new issue
Block a user