diff --git a/src/dbnode/persist/fs/merger.go b/src/dbnode/persist/fs/merger.go index c014af9753..a6e78dc496 100644 --- a/src/dbnode/persist/fs/merger.go +++ b/src/dbnode/persist/fs/merger.go @@ -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, }, }) } diff --git a/src/dbnode/persist/types.go b/src/dbnode/persist/types.go index 052161d0fc..c01b4aa8ca 100644 --- a/src/dbnode/persist/types.go +++ b/src/dbnode/persist/types.go @@ -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.