mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-30 19:40:39 +00:00
review: validate vectored get in release mode too
This commit is contained in:
@@ -758,10 +758,8 @@ impl Timeline {
|
||||
GetVectoredImpl::Vectored => {
|
||||
let vectored_res = self.get_vectored_impl(keyspace.clone(), lsn, ctx).await;
|
||||
|
||||
if cfg!(debug_assertions) {
|
||||
self.validate_get_vectored_impl(&vectored_res, keyspace, lsn, ctx)
|
||||
.await;
|
||||
}
|
||||
self.validate_get_vectored_impl(&vectored_res, keyspace, lsn, ctx)
|
||||
.await;
|
||||
|
||||
vectored_res
|
||||
}
|
||||
@@ -828,7 +826,6 @@ impl Timeline {
|
||||
Ok(results)
|
||||
}
|
||||
|
||||
#[allow(unused)]
|
||||
pub(super) async fn validate_get_vectored_impl(
|
||||
&self,
|
||||
vectored_res: &Result<BTreeMap<Key, Result<Bytes, PageReconstructError>>, GetVectoredError>,
|
||||
|
||||
Reference in New Issue
Block a user