mirror of
https://github.com/neondatabase/neon.git
synced 2026-06-04 14:00:38 +00:00
test: Skip fsync when initdb'ing the storage controller db
After initdb, we configure it with "fsync=off" anyway.
This commit is contained in:
committed by
Heikki Linnakangas
parent
70fe007519
commit
589594c2e1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user