Skip to content

Commit

Permalink
m/u: adding a config option for autocommit
Browse files Browse the repository at this point in the history
  • Loading branch information
steveschnepp committed May 18, 2024
1 parent f9acb18 commit ce790c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Munin/Master/Update.pm
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ sub get_dbh {
DEBUG "get_dbh: PRAGMA main.synchronous=$db_synchronous_mode;" if $db_driver eq "SQLite";

# AutoCommit when readonly is a no-op anyway
$dbh->{AutoCommit} = 0;
$dbh->{AutoCommit} = $ENV{MUNIN_DB_AUTOCOMMIT} || $config->{db_autocommit} || 0;
$dbh->{AutoCommit} = 1 if $is_read_only;
DEBUG "get_dbh: {AutoCommit} = " . $dbh->{AutoCommit};

Expand Down

0 comments on commit ce790c3

Please sign in to comment.