Skip to content

Commit

Permalink
db: label download compactions logs
Browse files Browse the repository at this point in the history
This trivial commit just adds a `download` label to the compaction
`Reason`, which shows up in logs.
  • Loading branch information
RaduBerinde committed Mar 28, 2024
1 parent e28836e commit 3450243
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions compaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,9 @@ func (c *compaction) makeInfo(jobID int) CompactionInfo {
Input: make([]LevelInfo, 0, len(c.inputs)),
Annotations: []string{},
}
if c.isDownload {
info.Reason = "download," + info.Reason
}
for _, cl := range c.inputs {
inputInfo := LevelInfo{Level: cl.level, Tables: nil}
iter := cl.files.Iter()
Expand Down

0 comments on commit 3450243

Please sign in to comment.