forked from solana-labs/solana
-
Notifications
You must be signed in to change notification settings - Fork 226
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make Blockstore::purge_special_columns_exact() bail if columns empty (s…
…olana-labs#33534) The special columns, TransactionStatus and AddressSignatures, are only populated if --enable-rpc-transaction-history is passed. Cleaning these columns for a range of slots is very expensive, as the block for each slot must be read, deserialized, and then parsed to extract all of the transaction signatures and address pubkeys. This change adds a simple check to see if there are any values at all in the special columns. If there are not, then the whole process described above can be skipped for nodes that are not storing the special columns.
- Loading branch information
Showing
1 changed file
with
72 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters