Skip to content
This repository was archived by the owner on Aug 23, 2023. It is now read-only.

Commit 38b0de1

Browse files
Dieterbereplay
andauthored
Initialize empty set of meta records in list method
Co-Authored-By: replay <mauro.stettler@gmail.com>
1 parent dd5f17a commit 38b0de1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

idx/memory/memory.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ func (m *UnpartitionedMemoryIdx) MetaTagRecordUpsert(orgId uint32, rawRecord idx
433433

434434
func (m *UnpartitionedMemoryIdx) MetaTagRecordList(orgId uint32) []idx.MetaTagRecord {
435435
builder := strings.Builder{}
436-
res := make([]idx.MetaTagRecord, 0, len(m.metaTagRecords))
436+
var res []idx.MetaTagRecord
437437

438438
m.RLock()
439439
defer m.RUnlock()

0 commit comments

Comments
 (0)