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:
Arnab Sen
2021-12-22 11:57:44 +05:30
parent 5d91133699
commit 36a6584703
4 changed files with 16 additions and 35 deletions

View File

@@ -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`