diff --git a/pageserver/src/walredo.rs b/pageserver/src/walredo.rs
index 28e5f997bb..7056ef4f90 100644
--- a/pageserver/src/walredo.rs
+++ b/pageserver/src/walredo.rs
@@ -26,13 +26,12 @@ use serde::Serialize;
use std::collections::VecDeque;
use std::io;
use std::io::prelude::*;
-use std::io::{Error, ErrorKind};
use std::ops::{Deref, DerefMut};
use std::os::unix::io::{AsRawFd, RawFd};
use std::os::unix::prelude::CommandExt;
use std::process::Stdio;
use std::process::{Child, ChildStderr, ChildStdin, ChildStdout, Command};
-use std::sync::{Mutex, MutexGuard};
+use std::sync::{Arc, Mutex, MutexGuard, RwLock};
use std::time::Duration;
use std::time::Instant;
use tracing::*;
@@ -93,7 +92,6 @@ pub trait WalRedoManager: Send + Sync {
}
struct ProcessInput {
- child: NoLeakChild,
stdin: ChildStdin,
stderr_fd: RawFd,
stdout_fd: RawFd,
@@ -116,13 +114,7 @@ struct ProcessOutput {
pub struct PostgresRedoManager {
tenant_id: TenantId,
conf: &'static PageServerConf,
- /// Counter to separate same sized walredo inputs failing at the same millisecond.
- #[cfg(feature = "testing")]
- dump_sequence: AtomicUsize,
-
- stdout: Mutex