diff --git a/pkg/vm/engine/disttae/relation_data.go b/pkg/vm/engine/disttae/relation_data.go index a548a6ea3154..c6902e8f54ce 100644 --- a/pkg/vm/engine/disttae/relation_data.go +++ b/pkg/vm/engine/disttae/relation_data.go @@ -149,7 +149,7 @@ func (relData *blockListRelData) MarshalBinaryWithBuffer(w *bytes.Buffer) (err e if err = relData.tombstones.MarshalBinaryWithBuffer(w); err != nil { return } - tombstoneLen = uint32(w.Len() - offset) + tombstoneLen = uint32(w.Len() - offset - 4) buf := w.Bytes() copy(buf[offset:], types.EncodeUint32(&tombstoneLen)) }