Fix compile warnings

This commit is contained in:
Konstantin Knizhnik
2024-12-04 22:03:51 +02:00
parent 19510f3315
commit 7fed72e951
2 changed files with 2 additions and 5 deletions

View File

@@ -247,7 +247,6 @@ pub const WAL_SEGMENT_SIZE: usize = 16 * 1024 * 1024;
pub const MAX_SEND_SIZE: usize = XLOG_BLCKSZ * 16;
// Export some version independent functions that are used outside of this mod
pub use v14::xlog_utils::calculate_walrecord_end_lsn;
pub use v14::xlog_utils::encode_logical_message;
pub use v14::xlog_utils::get_current_timestamp;
pub use v14::xlog_utils::to_pg_timestamp;

View File

@@ -33,10 +33,8 @@ use postgres_ffi::pg_constants::{PGDATA_SPECIAL_FILES, PG_HBA};
use postgres_ffi::relfile_utils::{INIT_FORKNUM, MAIN_FORKNUM};
use postgres_ffi::XLogFileName;
use postgres_ffi::PG_TLI;
use postgres_ffi::{calculate_walrecord_end_lsn, dispatch_pgversion, CheckPoint};
use postgres_ffi::{
BLCKSZ, RELSEG_SIZE, SIZEOF_CHECKPOINT, WAL_SEGMENT_SIZE, XLOG_SIZE_OF_XLOG_RECORD,
};
use postgres_ffi::{dispatch_pgversion, CheckPoint};
use postgres_ffi::{BLCKSZ, RELSEG_SIZE, WAL_SEGMENT_SIZE};
use utils::lsn::Lsn;
#[derive(Debug, thiserror::Error)]