removed unnecessay table.commit calls for def command

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4461 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
linggao 2009-10-28 20:03:35 +00:00
parent 724ca82e49
commit b2b42e2844
2 changed files with 7 additions and 4 deletions

View File

@ -224,7 +224,7 @@ sub getobjattrs
}
}
}
$thistable->commit;
#$thistable->commit;
}
}
}
@ -614,7 +614,7 @@ sub getDBtable
@{$::TableHash{$table}} = @rows;
$thistable->commit;
#$thistable->commit;
} # end if not cached

View File

@ -1155,6 +1155,7 @@ sub defmk
xCAT::Table->new('nodelist', -create => 1, -autocommit => 0);
my $newgroups;
my $changed=0;
foreach my $n (@memberlist)
{
if ($::verbose)
@ -1192,11 +1193,13 @@ sub defmk
if ($newgroups)
{
$tab->setNodeAttribs($n, {groups => $newgroups});
$changed=1;
}
}
$tab->commit;
if ($changed) {
$tab->commit;
}
}