diff --git a/xCAT-server/lib/xcat/plugins/tabutils.pm b/xCAT-server/lib/xcat/plugins/tabutils.pm index cc8935c17..b038afd40 100644 --- a/xCAT-server/lib/xcat/plugins/tabutils.pm +++ b/xCAT-server/lib/xcat/plugins/tabutils.pm @@ -690,9 +690,9 @@ sub tabprune_all { my $table = shift; my $cb = shift; my $rc=0; - my $tab = xCAT::Table->new($table, -create => 1, -autocommit => 0); + my $tab = xCAT::Table->new($table); unless ($tab) { - $cb->({error => "Unable to open $table",errorcode=>4}); + $cb->({error => "Unable to open the $table",errorcode=>4}); return 1; } $tab->delEntries(); #Yes, delete *all* entries @@ -706,7 +706,7 @@ sub tabprune_all { # my $cb = shift; # my $numberentries = shift; # my $rc=0; -# #my $tab = xCAT::Table->new($table, -create => 1, -autocommit => 0); +# #my $tab = xCAT::Table->new($table); # #unless ($tab) { # # $cb->({error => "Unable to open $table",errorcode=>4}); # # return 1; @@ -724,7 +724,7 @@ sub tabprune_recid { my $rc=0; # check which database so can build the correct Where clause my $DBname = xCAT::Utils->get_DBName; - my $tab = xCAT::Table->new($table, -create => 1, -autocommit => 0); + my $tab = xCAT::Table->new($table); unless ($tab) { $cb->({error => "Unable to open $table",errorcode=>4}); return 1;