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:
parent
724ca82e49
commit
b2b42e2844
@ -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
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user