From 26d2c27cd8e86f7d287aa6f1414946d38d90e0a7 Mon Sep 17 00:00:00 2001 From: lissav Date: Tue, 13 Apr 2010 13:22:53 +0000 Subject: [PATCH] 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 --- perl-xCAT/xCAT/MsgUtils.pm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/perl-xCAT/xCAT/MsgUtils.pm b/perl-xCAT/xCAT/MsgUtils.pm index cece243ed..adf94190c 100644 --- a/perl-xCAT/xCAT/MsgUtils.pm +++ b/perl-xCAT/xCAT/MsgUtils.pm @@ -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