go-ethereum/core/rawdb
wangyifan cd58897f18
core/rawdb: implement size reporting for live items in freezer_table (#28525)
This is the fix to issue #27483. A new hiddenBytes() is introduced to calculate the byte size of hidden items in the freezer table. When reporting the size of the freezer table, size of the hidden items will be subtracted from the total size.

---------

Co-authored-by: Yifan <Yifan Wang>
Co-authored-by: Gary Rong <garyrong0905@gmail.com>
2023-12-18 20:10:54 +01:00
..
testdata core/rawdb: avoid unnecessary receipt processing for log filtering (#23147) 2021-09-28 12:54:49 +02:00
accessors_chain_test.go all: activate pbss as experimental feature (#26274) 2023-08-10 22:21:36 +03:00
accessors_chain.go core/rawdb: add logging and fix comments around AncientRange function. (#28379) 2023-10-31 12:04:45 +01:00
accessors_indexes_test.go all: implement path-based state scheme (#25963) 2023-08-01 15:17:32 +03:00
accessors_indexes.go core/types, params: add blob transaction type, RLP encoded for now (#27049) 2023-04-21 12:52:02 +03:00
accessors_metadata.go core/rawdb: don't warn for missing "unclean shutdown markers" (#28014) 2023-09-06 06:29:51 -04:00
accessors_snapshot.go core/rawdb: add specified key length iterator (#24535) 2022-03-15 10:28:26 +02:00
accessors_state.go all: implement path-based state scheme (#25963) 2023-08-01 15:17:32 +03:00
accessors_sync.go core, accounts, eth, trie: handle genesis state missing (#28171) 2023-09-28 10:00:53 +03:00
accessors_trie.go cmd, core: resolve scheme from a read-write database (#28313) 2023-10-11 11:27:44 +03:00
ancient_scheme.go all: activate pbss as experimental feature (#26274) 2023-08-10 22:21:36 +03:00
ancient_utils.go core/rawdb: fsync the index file after each freezer write (#28483) 2023-11-10 12:56:39 +02:00
chain_freezer.go core: fix typos (#28218) 2023-09-29 10:52:22 +03:00
chain_iterator_test.go all: update golang/x/ext and fix slice sorting fallout (#27909) 2023-08-12 00:04:12 +02:00
chain_iterator.go core/rawdb: use atomic int added in go1.19 (#26935) 2023-03-21 07:10:23 -04:00
database_test.go all: update license headers and AUTHORS from git history (#24947) 2022-05-24 20:39:40 +02:00
database.go cmd, core, ethdb: enable Pebble on 32 bits and OpenBSD too (#28335) 2023-10-13 22:50:20 +03:00
freezer_batch.go core/rawdb: fsync the index file after each freezer write (#28483) 2023-11-10 12:56:39 +02:00
freezer_meta_test.go all: update license headers and AUTHORS from git history (#24947) 2022-05-24 20:39:40 +02:00
freezer_meta.go all: update license headers and AUTHORS from git history (#24947) 2022-05-24 20:39:40 +02:00
freezer_resettable_test.go core/rawdb: implement resettable freezer (#26324) 2022-12-19 04:59:12 -05:00
freezer_resettable.go core/rawdb: add logging and fix comments around AncientRange function. (#28379) 2023-10-31 12:04:45 +01:00
freezer_table_test.go core/rawdb: implement size reporting for live items in freezer_table (#28525) 2023-12-18 20:10:54 +01:00
freezer_table.go core/rawdb: implement size reporting for live items in freezer_table (#28525) 2023-12-18 20:10:54 +01:00
freezer_test.go core/rawdb: use readonly file lock in readonly mode (#28180) 2023-09-22 12:10:50 +02:00
freezer_utils_test.go all: more linters (#24783) 2022-06-13 16:24:45 +02:00
freezer_utils.go core/rawdb: fsync the index file after each freezer write (#28483) 2023-11-10 12:56:39 +02:00
freezer.go core/rawdb: use readonly file lock in readonly mode (#28180) 2023-09-22 12:10:50 +02:00
key_length_iterator_test.go core/rawdb: add specified key length iterator (#24535) 2022-03-15 10:28:26 +02:00
key_length_iterator.go core/rawdb: add specified key length iterator (#24535) 2022-03-15 10:28:26 +02:00
schema.go beacon/light: add CommitteeChain (#27766) 2023-12-08 13:38:00 +01:00
table_test.go all: simplify and fix database iteration with prefix/start (#20808) 2020-04-15 14:08:53 +03:00
table.go core: fix typos (#28218) 2023-09-29 10:52:22 +03:00