diff --git a/Cargo.lock b/Cargo.lock index 6bbb5dbfa2..b5f6b3b328 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4098,7 +4098,7 @@ checksum = "4b55807c0344e1e6c04d7c965f5289c39a8d94ae23ed5c0b57aabac549f871c6" dependencies = [ "filetime", "libc", - "xattr", + "xattr 0.2.3", ] [[package]] @@ -4379,16 +4379,17 @@ dependencies = [ [[package]] name = "tokio-tar" -version = "0.3.0" -source = "git+https://github.com/neondatabase/tokio-tar.git?rev=404df61437de0feef49ba2ccdbdd94eb8ad6e142#404df61437de0feef49ba2ccdbdd94eb8ad6e142" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d5714c010ca3e5c27114c1cdeb9d14641ace49874aa5626d7149e47aedace75" dependencies = [ "filetime", "futures-core", "libc", - "redox_syscall 0.2.16", + "redox_syscall 0.3.5", "tokio", "tokio-stream", - "xattr", + "xattr 1.0.0", ] [[package]] @@ -5362,6 +5363,15 @@ dependencies = [ "libc", ] +[[package]] +name = "xattr" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea263437ca03c1522846a4ddafbca2542d0ad5ed9b784909d4b27b76f62bc34a" +dependencies = [ + "libc", +] + [[package]] name = "xmlparser" version = "0.13.5" diff --git a/Cargo.toml b/Cargo.toml index 6ae31c13ac..01e2fe7cf9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -124,6 +124,7 @@ tokio-io-timeout = "1.2.0" tokio-postgres-rustls = "0.9.0" tokio-rustls = "0.23" tokio-stream = "0.1" +tokio-tar = "0.3" tokio-util = { version = "0.7", features = ["io"] } toml = "0.7" toml_edit = "0.19" @@ -148,7 +149,6 @@ postgres-native-tls = { git = "https://github.com/neondatabase/rust-postgres.git postgres-protocol = { git = "https://github.com/neondatabase/rust-postgres.git", rev="1aaedab101b23f7612042850d8f2036810fa7c7f" } postgres-types = { git = "https://github.com/neondatabase/rust-postgres.git", rev="1aaedab101b23f7612042850d8f2036810fa7c7f" } tokio-postgres = { git = "https://github.com/neondatabase/rust-postgres.git", rev="1aaedab101b23f7612042850d8f2036810fa7c7f" } -tokio-tar = { git = "https://github.com/neondatabase/tokio-tar.git", rev="404df61437de0feef49ba2ccdbdd94eb8ad6e142" } ## Other git libraries heapless = { default-features=false, features=[], git = "https://github.com/japaric/heapless.git", rev = "644653bf3b831c6bb4963be2de24804acf5e5001" } # upstream release pending diff --git a/pageserver/src/basebackup.rs b/pageserver/src/basebackup.rs index c666fc785c..d2dc759835 100644 --- a/pageserver/src/basebackup.rs +++ b/pageserver/src/basebackup.rs @@ -19,12 +19,6 @@ use tokio::io; use tokio::io::AsyncWrite; use tracing::*; -/// NB: This relies on a modified version of tokio_tar that does *not* write the -/// end-of-archive marker (1024 zero bytes), when the Builder struct is dropped -/// without explicitly calling 'finish' or 'into_inner'! -/// -/// See https://github.com/neondatabase/tokio-tar/pull/1 -/// use tokio_tar::{Builder, EntryType, Header}; use crate::context::RequestContext;