mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-11-03 21:02:34 +00:00 
			
		
		
		
	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:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user