From 6893c03950a52e46731a26deac3bdf7a487c51e6 Mon Sep 17 00:00:00 2001 From: Victor Luchits Date: Thu, 2 Nov 2023 17:56:15 +0300 Subject: [PATCH] Add global data pool --- pack_data.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pack_data.go b/pack_data.go index b7db26a..91f031e 100644 --- a/pack_data.go +++ b/pack_data.go @@ -193,7 +193,7 @@ func (data *packData) MarshalMsg(o []byte) ([]byte, error) { } } - o = msgp.AppendMapHeader(o, uint32(len(data.indexMap))) + o = msgp.AppendMapHeader(o, uint32(len(data.primaryKeyMap))) for key, val := range data.primaryKeyMap { o = msgp.AppendUint64(o, key) o, _ = msgp.AppendIntf(o, val)