stress: Use CREATE TABLE IF NOT EXISTS to create schema

Different threads might attempt to create the same tables so avoid
spurious errors printed out to the logs with `CREATE TABLE IF NOT
EXISTS`.
This commit is contained in:
Pekka Enberg
2025-09-04 18:56:05 +03:00
parent adb538e61a
commit 2fcb9dd76f

View File

@@ -204,7 +204,7 @@ impl ArbitrarySchema {
.collect::<Vec<_>>()
.join(",");
format!("CREATE TABLE {} ({});", table.name, columns)
format!("CREATE TABLE IF NOT EXISTS {} ({});", table.name, columns)
})
.collect()
}