core/mvcc: Make Clippy happy

This commit is contained in:
Pekka Enberg
2025-02-05 13:41:20 +02:00
parent 5870c92e9e
commit 36b487d281
2 changed files with 1 additions and 3 deletions

View File

@@ -630,7 +630,7 @@ impl<Clock: LogicalClock, T: Sync + Send + Clone + Debug + 'static> Database<Clo
}
}
let tx = tx_unlocked.value().write().unwrap();
let tx = tx_unlocked.value().read().unwrap();
tx.state.store(TransactionState::Terminated);
tracing::trace!("TERMINATE {tx}");
// FIXME: verify that we can already remove the transaction here!

View File

@@ -47,8 +47,6 @@ mod tests {
static IDS: AtomicU64 = AtomicU64::new(1);
static START: Once = Once::new();
#[test]
fn test_non_overlapping_concurrent_inserts() {
// Two threads insert to the database concurrently using non-overlapping