From 4dd16459bd1c54861a7d4a919c9ce8355083f8a4 Mon Sep 17 00:00:00 2001 From: HuangYi Date: Tue, 12 Nov 2024 14:47:15 +0800 Subject: [PATCH] skip non-zero version --- versiondb/tsrocksdb/store.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/versiondb/tsrocksdb/store.go b/versiondb/tsrocksdb/store.go index 109a452f4e..9148928681 100644 --- a/versiondb/tsrocksdb/store.go +++ b/versiondb/tsrocksdb/store.go @@ -305,11 +305,12 @@ func (s Store) loadWrongData(storeName string) ([]KVPairWithTS, error) { var pairs []KVPairWithTS for ; iter.Valid(); iter.Next() { ts := iter.Timestamp() - key := iter.Key() if binary.LittleEndian.Uint64(ts) != 0 { - return nil, fmt.Errorf("invalid timestamp: %X, store: %s, key: %X", ts, storeName, key) + // FIXME: https://github.com/crypto-org-chain/cronos/issues/1689 + continue } + key := iter.Key() if len(key) < TimestampSize { return nil, fmt.Errorf("invalid key length: %X, store: %s", key, storeName) }