Yair Zaslavsky has posted comments on this change. Change subject: aaa: more fixes to command context propgation ......................................................................
Patch Set 10: (3 comments) http://gerrit.ovirt.org/#/c/29290/10/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RemoveDiskSnapshotsCommand.java File backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RemoveDiskSnapshotsCommand.java: Line 4 Line 5 Line 6 Line 7 Line 8 > shouldn't it be removed from this patch ? Done http://gerrit.ovirt.org/#/c/29290/10/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/job/ExecutionHandler.java File backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/job/ExecutionHandler.java: Line 517: public static CommandContext createInternalJobContext(CommandContext commandContext, EngineLock lock) { Line 518: return modifyContextForIntenrakJob(lock, commandContext.clone()); Line 519: } Line 520: Line 521: private static CommandContext modifyContextForIntenrakJob(EngineLock lock, CommandContext returnedContext) { > s/modifyContextForIntenrakJob/modifyContextForIntenralJob Done Line 522: ExecutionContext executionContext = new ExecutionContext(); Line 523: executionContext.setJobRequired(true); Line 524: executionContext.setMonitored(true); Line 525: return returnedContext Line 520: Line 521: private static CommandContext modifyContextForIntenrakJob(EngineLock lock, CommandContext returnedContext) { Line 522: ExecutionContext executionContext = new ExecutionContext(); Line 523: executionContext.setJobRequired(true); Line 524: executionContext.setMonitored(true); > the three lines above can be extracted into a private method named "created not sure why u would like to have a method that is called only once from other methods, but i have changed. Line 525: return returnedContext Line 526: .withExecutionContext(executionContext) Line 527: .withLock(lock) Line 528: .withoutCompensationContext(); -- To view, visit http://gerrit.ovirt.org/29290 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: Icbf9e0216c83d981d11bb2d8d2a939fd2a279d9d Gerrit-PatchSet: 10 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Yair Zaslavsky <[email protected]> Gerrit-Reviewer: Alon Bar-Lev <[email protected]> Gerrit-Reviewer: Arik Hadas <[email protected]> Gerrit-Reviewer: Moti Asayag <[email protected]> Gerrit-Reviewer: Piotr Kliczewski <[email protected]> Gerrit-Reviewer: Tal Nisan <[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
