mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-05 00:04:23 +01:00
Remove some unused attributes
This commit is contained in:
@@ -1638,7 +1638,6 @@ pub fn build_shared_wal(
|
||||
l.unlock();
|
||||
}
|
||||
|
||||
#[allow(clippy::arc_with_non_send_sync)]
|
||||
let wal_file_shared = Arc::new(RwLock::new(WalFileShared {
|
||||
enabled: AtomicBool::new(true),
|
||||
wal_header: header.clone(),
|
||||
@@ -1964,7 +1963,6 @@ pub fn begin_read_wal_frame_raw(
|
||||
) -> Result<Completion> {
|
||||
tracing::trace!("begin_read_wal_frame_raw(offset={})", offset);
|
||||
let buf = Arc::new(buffer_pool.get_wal_frame());
|
||||
#[allow(clippy::arc_with_non_send_sync)]
|
||||
let c = Completion::new_read(buf, complete);
|
||||
let c = io.pread(offset, c)?;
|
||||
Ok(c)
|
||||
|
||||
@@ -553,7 +553,6 @@ impl fmt::Debug for OngoingCheckpoint {
|
||||
}
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub struct WalFile {
|
||||
io: Arc<dyn IO>,
|
||||
buffer_pool: Arc<BufferPool>,
|
||||
@@ -660,7 +659,6 @@ impl fmt::Debug for WalFile {
|
||||
// TODO(pere): lock only important parts + pin WalFileShared
|
||||
/// WalFileShared is the part of a WAL that will be shared between threads. A wal has information
|
||||
/// that needs to be communicated between threads so this struct does the job.
|
||||
#[allow(dead_code)]
|
||||
pub struct WalFileShared {
|
||||
pub enabled: AtomicBool,
|
||||
pub wal_header: Arc<SpinLock<WalHeader>>,
|
||||
|
||||
Reference in New Issue
Block a user