From 335dafa3f781216c6b7c277cb1d170d3ee64fa84 Mon Sep 17 00:00:00 2001 From: Andrew Lamb Date: Mon, 24 Oct 2022 13:45:56 -0400 Subject: [PATCH] fix: Do not truncate data retrieved from `remote store get` command (#5966) --- influxdb_iox/src/commands/remote/store.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/influxdb_iox/src/commands/remote/store.rs b/influxdb_iox/src/commands/remote/store.rs index f79d23a755..db1f5c9a0c 100644 --- a/influxdb_iox/src/commands/remote/store.rs +++ b/influxdb_iox/src/commands/remote/store.rs @@ -52,7 +52,8 @@ pub async fn command(connection: Connection, config: Config) -> Result<(), Error let mut file = File::create(&get.file_name).await?; while let Some(res) = response.next().await { let res = res.unwrap(); - let _ = file.write(&res.data).await?; + + file.write_all(&res.data).await?; } println!("wrote data to {}", get.file_name);