fix datatype used in test mock function

This commit is contained in:
Heikki Linnakangas
2025-07-23 01:44:45 +03:00
parent bfb4b0991d
commit a7a6df3d6f
2 changed files with 3 additions and 3 deletions

View File

@@ -10,7 +10,7 @@ use utils::lsn::Lsn;
unsafe extern "C" {
pub fn notify_proc_unsafe(procno: std::ffi::c_int);
pub fn callback_set_my_latch_unsafe();
pub fn callback_get_request_lsn_unsafe() -> u64;
pub fn callback_get_request_lsn_unsafe() -> crate::neon_request::CLsn;
pub fn callback_get_lfc_metrics_unsafe() -> LfcMetrics;
}
@@ -27,7 +27,7 @@ unsafe fn callback_set_my_latch_unsafe() {
panic!("not usable in unit tests");
}
#[cfg(test)]
unsafe fn callback_get_request_lsn_unsafe() {
unsafe fn callback_get_request_lsn_unsafe() -> Lsn {
panic!("not usable in unit tests");
}
#[cfg(test)]

View File

@@ -329,7 +329,7 @@ callback_set_my_latch_unsafe(void)
* FIXME: The logic from neon_get_request_lsns() needs to go here, except for
* the last-written LSN cache stuff, which is managed by the rust code now.
*/
uint64_t
XLogRecPtr
callback_get_request_lsn_unsafe(void)
{
/*