mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-05 18:52:29 +02:00
tracing: correctly scope utxocache:flush tracepoint
Previously, the `utxocache:flush` tracepoint was in the wrong scope and reached every time `CChainState::FlushStateToDisk` was called, even when there was no flushing of the cache. The tracepoint is now properly scoped and will be reached during a full flush. Inside the scope, the `fDoFullFlush` value will always be `true`, so it doesn't need to be logged separately. Hence, it's dropped from the tracepoint arguments.
This commit is contained in:
@@ -112,7 +112,7 @@ Arguments passed:
|
||||
|
||||
#### Tracepoint `utxocache:flush`
|
||||
|
||||
Is called *after* the caches and indexes are flushed depending on the mode
|
||||
Is called *after* the caches are flushed depending on the mode
|
||||
`CChainState::FlushStateToDisk` is called with.
|
||||
|
||||
Arguments passed:
|
||||
@@ -122,7 +122,6 @@ Arguments passed:
|
||||
3. Number of coins flushed as `uint64`
|
||||
4. Memory usage in bytes as `uint64`
|
||||
5. If the flush was pruned as `bool`
|
||||
6. If it was full flush as `bool`
|
||||
|
||||
#### Tracepoint `utxocache:add`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user