Make commits sync the log, unless sync is disabled for the connection.