Mike Kolesnik has posted comments on this change.

Change subject: core: MacPoolManager-->ScopedMacPoolManager
......................................................................


Patch Set 38: Code-Review-1

(2 comments)

http://gerrit.ovirt.org/#/c/26800/38/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/network/MacPoolManagerRangesRegisterAcquiredMacsOnInit.java
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/network/MacPoolManagerRangesRegisterAcquiredMacsOnInit.java:

Line 11
Line 12
Line 13
Line 14
Line 15
You should probably delete this method also from the MacPoolManagerRanges since 
it's not needed anymore..


http://gerrit.ovirt.org/#/c/26800/38/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/RemoveStoragePoolCommand.java
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/RemoveStoragePoolCommand.java:

Line 87: 
Line 88:         removeDataCenter();
Line 89: 
Line 90:         getMacPoolForDataCenter().freeMacs(macsToRemove);
Line 91:         MacPoolPerDc.getInstance().removePool(getStoragePoolId());
> What's the problem?
You're trying to remove a pool by the data center ID, this seems OK to you?

Also why would you even remove the pool? It's a shared pool..
Line 92:         setSucceeded(true);
Line 93:     }
Line 94: 
Line 95:     private void removeDataCenter() {


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I779f4d031409fbc422077ddf291fa34f955f3206
Gerrit-PatchSet: 38
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Martin Mucha <mmu...@redhat.com>
Gerrit-Reviewer: Lior Vernia <lver...@redhat.com>
Gerrit-Reviewer: Martin Mucha <mmu...@redhat.com>
Gerrit-Reviewer: Mike Kolesnik <mkole...@redhat.com>
Gerrit-Reviewer: Moti Asayag <masa...@redhat.com>
Gerrit-Reviewer: automat...@ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to