Skip to content

Commit

Permalink
[cp][116] db-backup: fix wrong chunk size for state snapshot chunk fe…
Browse files Browse the repository at this point in the history
…tching (#13995) (#14006)
  • Loading branch information
msmouse authored Jul 15, 2024
1 parent e8c1595 commit f669e69
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ impl StateSnapshotBackupController {
&self,
concurrency: usize,
) -> Result<impl TryStream<Ok = Bytes, Error = anyhow::Error, Item = Result<Bytes>>> {
const CHUNK_SIZE: usize = if cfg!(test) { 100_000 } else { 2 };
const CHUNK_SIZE: usize = if cfg!(test) { 2 } else { 100_000 };

let count = self.client.get_state_item_count(self.version()).await?;
let version = self.version();
Expand Down

0 comments on commit f669e69

Please sign in to comment.