commit ineffective with AutoCommit enabled at line 93

重新启mailscanner提示:“1commit ineffective with AutoCommit enabled at /usr/local/lib/MailScanner/MailScanner/CustomFunctions/MailWatch.pm line 93, <CLIENT> line 1.”

解决办法一:

vi +93 MailWatch.pm

Change:

$dbh->commit;^M
$dbh->disconnect;^M
To:

#$dbh->commit;^M
$dbh->disconnect;^M

解决办法二:

vi Mailwatch.pm

在 $dbh->commit; 前加入 $dbh->{Warn} = 0;

sub ExitLogging {
  # Server exit - commit changes, close socket, and exit gracefully.
  close(SERVER);
  $dbh->{Warn} = 0;
  $dbh->commit;
  $dbh->disconnect;
  exit;

}

上一篇: