pub fn init_write_sync(enabled: Option<bool>)
Initialize the write sync setting from config. Must be called before any database writes occur.