test: Skip fsync when initdb'ing the storage controller db

After initdb, we configure it with "fsync=off" anyway.
This commit is contained in:
Heikki Linnakangas
2024-09-23 20:48:41 +03:00
committed by Heikki Linnakangas
parent 70fe007519
commit 589594c2e1

View File

@@ -346,7 +346,14 @@ impl StorageController {
let pg_log_path = pg_data_path.join("postgres.log");
if !tokio::fs::try_exists(&pg_data_path).await? {
let initdb_args = ["-D", pg_data_path.as_ref(), "--username", &username()];
let initdb_args = [
"-D",
pg_data_path.as_ref(),
"--username",
&username(),
"--no-sync",
"--no-instructions",
];
tracing::info!(
"Initializing storage controller database with args: {:?}",
initdb_args