diff --git a/head.go b/head.go index 4dfdd5b86b..ffbdf5ea4e 100644 --- a/head.go +++ b/head.go @@ -529,8 +529,8 @@ func (a *headAppender) createSeries() error { base0 := len(a.series) a.mtx.RUnlock() - a.mtx.Lock() defer a.mtx.RLock() + a.mtx.Lock() defer a.mtx.Unlock() base1 := len(a.series)