Kobi Ianko has posted comments on this change.

Change subject: core: Fix AuditLog check for existing log entries
......................................................................


Patch Set 5:

(1 comment)

http://gerrit.ovirt.org/#/c/26028/5/backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dal/dbbroker/auditloghandling/TimeoutBase.java
File 
backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dal/dbbroker/auditloghandling/TimeoutBase.java:

Line 49:      */
Line 50:     public boolean getLegal() {
Line 51:         if (getUseTimout()) {
Line 52:             String keyForCheck = getkeyForCheck();
Line 53:             synchronized (keyForCheck.intern()) {
> something looks strange here. we use a sync-ed map and use synchronized as 
because we are performing two operations, the sync map will guarantee each 
operation to be an atomic one but not both of them together.
Line 54:                 if 
(!CacheManager.getTimeoutBaseCache().containsKey(keyForCheck)) {
Line 55:                     CacheManager.getTimeoutBaseCache().put(keyForCheck,
Line 56:                             keyForCheck,
Line 57:                             getEndTime(),


-- 
To view, visit http://gerrit.ovirt.org/26028
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I94b777911eb1ff667be3dc8362bde5746d84824c
Gerrit-PatchSet: 5
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Kobi Ianko <[email protected]>
Gerrit-Reviewer: Doron Fediuck <[email protected]>
Gerrit-Reviewer: Eli Mesika <[email protected]>
Gerrit-Reviewer: Gilad Chaplik <[email protected]>
Gerrit-Reviewer: Jiří Moskovčák <[email protected]>
Gerrit-Reviewer: Kobi Ianko <[email protected]>
Gerrit-Reviewer: Liran Zelkha <[email protected]>
Gerrit-Reviewer: Martin Sivák <[email protected]>
Gerrit-Reviewer: Moti Asayag <[email protected]>
Gerrit-Reviewer: Omer Frenkel <[email protected]>
Gerrit-Reviewer: Yair Zaslavsky <[email protected]>
Gerrit-Reviewer: [email protected]
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to