Skip to content

Commit 7962591

Browse files
committed
test: make storage visibility test use read committed
1 parent 38ec5e9 commit 7962591

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/storage/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1966,6 +1966,7 @@ mod test {
19661966
use crate::storage::table_codec::TableCodec;
19671967
use crate::storage::{
19681968
IndexIter, InnerIter, StatisticsMetaCache, Storage, TableCache, Transaction,
1969+
TransactionIsolationLevel,
19691970
};
19701971
use crate::types::index::{Index, IndexMeta, IndexType};
19711972
use crate::types::tuple::Tuple;
@@ -2528,7 +2529,8 @@ mod test {
25282529
index_id
25292530
};
25302531

2531-
let reader_tx = storage.transaction()?;
2532+
let reader_tx =
2533+
storage.transaction_with_isolation(TransactionIsolationLevel::ReadCommitted)?;
25322534
let tuple_id = {
25332535
let mut index_iter = table_codec.with_index_bound("t1", index_id, |min, max| {
25342536
reader_tx.range(Bound::Included(min), Bound::Included(max))

0 commit comments

Comments
 (0)