From 7b2019fdfe54ad46059214b363250e1b314d16d0 Mon Sep 17 00:00:00 2001 From: John Spray Date: Thu, 21 Dec 2023 17:31:20 +0000 Subject: [PATCH] fixup! compute_tools: enable passing through stripe size --- compute_tools/src/config.rs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/compute_tools/src/config.rs b/compute_tools/src/config.rs index 852f98de96..73927b8462 100644 --- a/compute_tools/src/config.rs +++ b/compute_tools/src/config.rs @@ -70,14 +70,7 @@ pub fn write_postgres_conf( } if let Some(stripe_size) = &spec.shard_stripe_size { - writeln!( - file, - "neon.stripe_size={}", - // TODO: postgres should take stripe size in page count, to match how the - // rest of the system stores it. - // https://github.com/neondatabase/neon/pull/5837#discussion_r1430485706 - (stripe_size * 8 * 1024) / (1024 * 1024) - )?; + writeln!(file, "neon.stripe_size={}", stripe_size)?; } match spec.mode {