Michael Kublin has posted comments on this change.
Change subject: core: Clean "only in db" async tasks
......................................................................
Patch Set 6: (1 inline comment)
....................................................
File
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AsyncTaskManager.java
Line 83: Config.<Integer>
GetValue(ConfigValues.AsyncTaskStatusCacheRefreshRateInSeconds),
TimeUnit.SECONDS);
Line 84: _cacheTimeInMinutes = Config.<Integer>
GetValue(ConfigValues.AsyncTaskStatusCachingTimeInMinutes);
Line 85: tasksInDbAfterRestart = new ConcurrentHashMap<Guid,
List<AsyncTasks>>();
Line 86: for (AsyncTasks task:
DbFacade.getInstance().getAsyncTaskDao().getAll()) {
Line 87: List<AsyncTasks> tasksPerStoragePool =
tasksInDbAfterRestart.get(task.getStoragePoolId());
cool
Line 88: if (tasksPerStoragePool == null) {
Line 89: tasksPerStoragePool = new ArrayList<AsyncTasks>();
Line 90: tasksInDbAfterRestart.put(task.getStoragePoolId(),
tasksPerStoragePool);
Line 91: }
--
To view, visit http://gerrit.ovirt.org/12055
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: Ie13ae21eaadb1bb621a7fc8ad471e60387a3699b
Gerrit-PatchSet: 6
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Yair Zaslavsky <[email protected]>
Gerrit-Reviewer: Eli Mesika <[email protected]>
Gerrit-Reviewer: Michael Kublin <[email protected]>
Gerrit-Reviewer: Yair Zaslavsky <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches