mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-29 04:44:23 +01:00
Merge 'core/mvcc: Specify level for tracing' from Pekka Enberg
..otherwise we perform the tracing for every step() dropping write throughput by 40%. Closes #3145
This commit is contained in:
@@ -390,7 +390,7 @@ impl<Clock: LogicalClock> StateTransition for CommitStateMachine<Clock> {
|
||||
type Context = MvStore<Clock>;
|
||||
type SMResult = ();
|
||||
|
||||
#[tracing::instrument(fields(state = ?self.state), skip(self, mvcc_store))]
|
||||
#[tracing::instrument(fields(state = ?self.state), skip(self, mvcc_store), level = Level::DEBUG)]
|
||||
fn step(&mut self, mvcc_store: &Self::Context) -> Result<TransitionResult<Self::SMResult>> {
|
||||
match self.state {
|
||||
CommitState::Initial => {
|
||||
@@ -810,7 +810,7 @@ impl StateTransition for WriteRowStateMachine {
|
||||
type Context = ();
|
||||
type SMResult = ();
|
||||
|
||||
#[tracing::instrument(fields(state = ?self.state), skip(self, _context))]
|
||||
#[tracing::instrument(fields(state = ?self.state), skip(self, _context), level = Level::DEBUG)]
|
||||
fn step(&mut self, _context: &Self::Context) -> Result<TransitionResult<Self::SMResult>> {
|
||||
use crate::types::{IOResult, SeekKey, SeekOp};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user