fix 2986319 MsgUtils should not commit when running under sqllite when updating auditlog
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5757 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
b28bc53b2a
commit
26d2c27cd8
@ -16,7 +16,7 @@ if ($^O =~ /^aix/i)
|
||||
use strict;
|
||||
use Sys::Syslog qw (:DEFAULT setlogsock);
|
||||
require xCAT::Table;
|
||||
|
||||
use xCAT::Utils;
|
||||
#use locale;
|
||||
use Socket;
|
||||
use File::Path;
|
||||
@ -506,7 +506,10 @@ sub message
|
||||
}
|
||||
else
|
||||
{
|
||||
$tab->commit;
|
||||
my $DBname = xCAT::Utils->get_DBName;
|
||||
if (!($DBname =~ /^SQLITE/)) {
|
||||
$tab->commit;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user