Skip to content

Commit

Permalink
[dbnode] Update series metadata type name. (#2946)
Browse files Browse the repository at this point in the history
  • Loading branch information
notbdu authored Nov 24, 2020
1 parent 935d839 commit c8326e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/dbnode/persist/fs/merger.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ func (m *merger) Merge(
Type: persist.SeriesDocumentType,
Document: seriesMetadata,
// The lifetime of the shard series metadata is longly lived.
LifeTime: persist.SeriesMetadataLifeTimeLong,
LifeTime: persist.SeriesLifeTimeLong,
},
})
}
Expand Down
8 changes: 4 additions & 4 deletions src/dbnode/persist/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -324,12 +324,12 @@ const (
type SeriesMetadataLifeTime uint8

const (
// SeriesMetadataLifeTimeLong means the underlying memory's life time is long lived and exceeds
// SeriesLifeTimeLong means the underlying memory's life time is long lived and exceeds
// the execution duration of the series metadata receiver.
SeriesMetadataLifeTimeLong SeriesMetadataLifeTime = iota
// SeriesMetadataLifeTimeShortLived means that the underlying memory is only valid for the duration
SeriesLifeTimeLong SeriesMetadataLifeTime = iota
// SeriesLifeTimeShort means that the underlying memory is only valid for the duration
// of the OnFlushNewSeries call. Must clone the underlying bytes in order to extend the life time.
SeriesMetadataLifeTimeShortLived
SeriesLifeTimeShort
)

// SeriesMetadataType describes the type of series metadata.
Expand Down

0 comments on commit c8326e3

Please sign in to comment.