mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-10 19:54:24 +01:00
core: Panic on fsync() error by default
Retrying fsync() on error was historically not safe ("fsyncgate") and
Postgres still defaults to panicing on fsync(). Therefore, add a
"data_sync_retry" pragma (disabled by default) and use it to determine
whether to panic on fsync() error or not.
This commit is contained in:
@@ -1318,6 +1318,8 @@ pub enum PragmaName {
|
||||
#[strum(serialize = "cipher")]
|
||||
#[cfg_attr(feature = "serde", serde(rename = "cipher"))]
|
||||
EncryptionCipher,
|
||||
/// Control fsync error retry behavior (0 = off/panic, 1 = on/retry)
|
||||
DataSyncRetry,
|
||||
/// List databases
|
||||
DatabaseList,
|
||||
/// Encoding - only support utf8
|
||||
|
||||
Reference in New Issue
Block a user