Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ public void processConnect(Host host, StartupCommand cmd, boolean forRebalance)
throw new ConnectionException(true, String.format("Unable to prepare OCFS2 nodes for pool %s", pool));
}

Long hostId = host.getId();
if (logger.isDebugEnabled()) {
logger.debug("Host {} connected, connecting host to shared pool {} and sending storage pool information ...", host, pool);
}
Expand All @@ -185,6 +184,9 @@ public void processConnect(Host host, StartupCommand cmd, boolean forRebalance)
// Disconnect any pools which are not expected to be connected
for (StoragePoolHostVO poolToDisconnect: previouslyConnectedPools) {
StoragePoolVO pool = _poolDao.findById(poolToDisconnect.getPoolId());
if (!pool.isShared()) {
continue;
}
try {
_storageManager.disconnectHostFromSharedPool(host, pool);
_storagePoolHostDao.deleteStoragePoolHostDetails(host.getId(), pool.getId());
Expand Down
Loading