@@ -127,20 +127,19 @@ public void processConnect(Host host, StartupCommand cmd, boolean forRebalance)
127127 continue ;
128128 }
129129
130- if (pool .getPoolType () == StoragePoolType .OCFS2 && !_ocfs2Mgr .prepareNodes (pool .getClusterId ())) {
131- throw new ConnectionException (true , String .format ("Unable to prepare OCFS2 nodes for pool %s" , pool ));
132- }
130+ if (pool .getPoolType () == StoragePoolType .OCFS2 && !_ocfs2Mgr .prepareNodes (pool .getClusterId ())) {
131+ throw new ConnectionException (true , String .format ("Unable to prepare OCFS2 nodes for pool %s" , pool ));
132+ }
133133
134- Long hostId = host .getId ();
135- if (logger .isDebugEnabled ()) {
136- logger .debug ("Host {} connected, connecting host to shared pool {} and sending storage pool information ..." , host , pool );
137- }
138- try {
139- _storageManager .connectHostToSharedPool (host , pool .getId ());
140- _storageManager .createCapacityEntry (pool .getId ());
141- } catch (Exception e ) {
142- throw new ConnectionException (true , String .format ("Unable to connect host %s to storage pool %s due to %s" , host , pool , e .toString ()), e );
143- }
134+ Long hostId = host .getId ();
135+ if (logger .isDebugEnabled ()) {
136+ logger .debug ("Host {} connected, connecting host to shared pool {} and sending storage pool information ..." , host , pool );
137+ }
138+ try {
139+ _storageManager .connectHostToSharedPool (host , pool .getId ());
140+ _storageManager .createCapacityEntry (pool .getId ());
141+ } catch (Exception e ) {
142+ throw new ConnectionException (true , String .format ("Unable to connect host %s to storage pool %s due to %s" , host , pool , e .toString ()), e );
144143 }
145144 }
146145 }
0 commit comments