From 1c6d2194c47295ed8ff6d0a297583e347827a97a Mon Sep 17 00:00:00 2001 From: li mengyang Date: Wed, 28 Aug 2019 01:33:40 +0800 Subject: [PATCH] fix spelling mistakes in docs (#5952) Signed-off-by: hwdef --- docs/configuration/configuration.md | 2 +- tsdb/CHANGELOG.md | 2 +- tsdb/head.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/configuration/configuration.md b/docs/configuration/configuration.md index 2770fcfbd5..222594f31c 100644 --- a/docs/configuration/configuration.md +++ b/docs/configuration/configuration.md @@ -1297,7 +1297,7 @@ queue_config: # Number of samples to buffer per shard before we block reading of more # samples from the WAL. It is recommended to have enough capacity in each # shard to buffer several requests to keep throughput up while processing - # occassional slow remote requests. + # occasional slow remote requests. [ capacity: | default = 500 ] # Maximum number of shards, i.e. amount of concurrency. [ max_shards: | default = 1000 ] diff --git a/tsdb/CHANGELOG.md b/tsdb/CHANGELOG.md index 12364b09fc..e3da26b06f 100644 --- a/tsdb/CHANGELOG.md +++ b/tsdb/CHANGELOG.md @@ -91,7 +91,7 @@ - `OpenBlock` signature changed to take a logger. - [REMOVED] `PrefixMatcher` is considered unused so was removed. - [CLEANUP] `Options.WALFlushInterval` is removed as it wasn't used anywhere. - - [FEATURE] Add new `LiveReader` to WAL pacakge. Added to allow live tailing of a WAL segment, used by Prometheus Remote Write after refactor. The main difference between the new reader and the existing `Reader` is that for `LiveReader` a call to `Next()` that returns false does not mean that there will never be more data to read. + - [FEATURE] Add new `LiveReader` to WAL package. Added to allow live tailing of a WAL segment, used by Prometheus Remote Write after refactor. The main difference between the new reader and the existing `Reader` is that for `LiveReader` a call to `Next()` that returns false does not mean that there will never be more data to read. ## 0.3.1 diff --git a/tsdb/head.go b/tsdb/head.go index 219514ffe1..6c9975a136 100644 --- a/tsdb/head.go +++ b/tsdb/head.go @@ -1046,7 +1046,7 @@ func (h *Head) gc() { h.metrics.seriesRemoved.Add(float64(seriesRemoved)) h.metrics.chunksRemoved.Add(float64(chunksRemoved)) h.metrics.chunks.Sub(float64(chunksRemoved)) - // Using AddUint64 to substract series removed. + // Using AddUint64 to subtract series removed. // See: https://golang.org/pkg/sync/atomic/#AddUint64. atomic.AddUint64(&h.numSeries, ^uint64(seriesRemoved-1))