basebackup: fetch all SLRUs of one basebackup using the same IoConcurrency

This commit is contained in:
Christian Schwarz
2025-01-20 16:58:14 +01:00
parent 2eb235e923
commit 3b1328423e

View File

@@ -301,20 +301,16 @@ where
let mut slru_builder = SlruSegmentsBuilder::new(&mut self.ar);
let io_concurrency = IoConcurrency::spawn_from_env(
self.timeline
.gate
.enter()
.map_err(|e| BasebackupError::Server(e.into()))?,
);
for part in slru_partitions.parts {
let blocks = self
.timeline
.get_vectored(
part,
self.lsn,
IoConcurrency::spawn_from_env(
self.timeline
.gate
.enter()
.map_err(|e| BasebackupError::Server(e.into()))?,
),
self.ctx,
)
.get_vectored(part, self.lsn, io_concurrency.clone(), self.ctx)
.await
.map_err(|e| BasebackupError::Server(e.into()))?;