only update sequence number when asked to. full sync SHOULD NOT request sequence number updates since this will lead to the dog chasing its own tail

This commit is contained in:
Chiradeep Vittal 2011-08-29 00:08:18 -07:00
parent 6252d605c1
commit 5dba8cf430
1 changed files with 5 additions and 2 deletions

View File

@ -94,7 +94,10 @@ public class SecurityGroupManagerImpl2 extends SecurityGroupManagerImpl {
Profiler p = new Profiler();
p.start();
int updated = _rulesetLogDao.createOrUpdate(workItems);
int updated = 0;
if (updateSeqno) {
updated = _rulesetLogDao.createOrUpdate(workItems);
}
int newJobs = _workQueue.submitWorkForVms(workItems);
p.stop();
if (s_logger.isTraceEnabled()){
@ -183,7 +186,7 @@ public class SecurityGroupManagerImpl2 extends SecurityGroupManagerImpl {
@Override
public void cleanupFinishedWork() {
//no-op
//TODO: over time clean up op_vm_ruleset_log table for destroyed vms
}
/*