From dc740cdf9dc0a2ed81b7a35b7a641975972ab474 Mon Sep 17 00:00:00 2001 From: "alex.sharov" Date: Thu, 16 Mar 2023 10:22:53 +0700 Subject: [PATCH] don't loose nil value --- etl/collector.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/etl/collector.go b/etl/collector.go index 0c3144c62..2dc7780fb 100644 --- a/etl/collector.go +++ b/etl/collector.go @@ -207,6 +207,11 @@ func (c *Collector) Load(db kv.RwTx, toBucket string, loadFunc LoadFunc, args Tr } return nil } + if bucket == "PlainState" { + if len(v) == 0 { + fmt.Printf("etl load: empty val: %x, %x, %d, %t\n", k, v, c.bufType, v == nil) + } + } if canUseAppend { if isDupSort { if err := cursor.(kv.RwCursorDupSort).AppendDup(k, v); err != nil {