Skip to content

Commit 764a5f1

Browse files
committed
fixup! introduce TxnGuard trait to pass either TxnGuardOwned/TxnGuardShared
1 parent 34389a3 commit 764a5f1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

libsql-wal/src/segment/current.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ use crate::io::file::FileExt;
2323
use crate::io::Inspect;
2424
use crate::segment::{checked_frame_offset, SegmentFlags};
2525
use crate::segment::{frame_offset, page_offset, sealed::SealedSegment};
26-
use crate::transaction::{Transaction, TxGuard, TxGuardOwned};
26+
use crate::transaction::{Transaction, TxGuardShared, TxGuardOwned};
2727
use crate::{LIBSQL_MAGIC, LIBSQL_PAGE_SIZE, LIBSQL_WAL_VERSION};
2828

2929
use super::list::SegmentList;
@@ -231,7 +231,7 @@ impl<F> CurrentSegment<F> {
231231
&self,
232232
pages: impl Iterator<Item = (u32, &'a [u8])>,
233233
size_after: Option<u32>,
234-
tx: &mut TxGuard<F>,
234+
tx: &mut TxGuardShared<F>,
235235
) -> Result<Option<u64>>
236236
where
237237
F: FileExt,

0 commit comments

Comments
 (0)