Skip to content

Commit eaf17dd

Browse files
committed
renamed storage.pool.host.connect.workers
Signed-off-by: Abhishek Kumar <[email protected]>
1 parent f6c16d9 commit eaf17dd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

engine/components-api/src/main/java/com/cloud/storage/StorageManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,8 @@ public interface StorageManager extends StorageService {
213213
"when resize a volume upto resize capacity disable threshold (pool.storage.allocated.resize.capacity.disablethreshold)",
214214
true, ConfigKey.Scope.Zone);
215215

216-
ConfigKey<Integer> PrimaryStorageHostConnectWorkers = new ConfigKey<>("Storage", Integer.class,
217-
"primary.storage.host.connect.workers", "1",
216+
ConfigKey<Integer> StoragePoolHostConnectWorkers = new ConfigKey<>("Storage", Integer.class,
217+
"storage.pool.host.connect.workers", "1",
218218
"Number of worker threads to be used to connect hosts to a primary storage", true);
219219

220220
/**

server/src/main/java/com/cloud/storage/StorageManagerImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1171,7 +1171,7 @@ public void connectHostsToPool(DataStore primaryStore, List<Long> hostIds, Scope
11711171
boolean handleStorageConflictException, boolean errorOnNoUpHost) throws CloudRuntimeException {
11721172
CopyOnWriteArrayList<Long> poolHostIds = new CopyOnWriteArrayList<>();
11731173
ExecutorService executorService = Executors.newFixedThreadPool(Math.max(1, Math.min(hostIds.size(),
1174-
PrimaryStorageHostConnectWorkers.value())));
1174+
StoragePoolHostConnectWorkers.value())));
11751175
List<Future<Void>> futures = new ArrayList<>();
11761176
AtomicBoolean conflictSeen = new AtomicBoolean(false);
11771177
for (Long hostId : hostIds) {
@@ -3610,7 +3610,7 @@ public ConfigKey<?>[] getConfigKeys() {
36103610
VmwareAllowParallelExecution,
36113611
DataStoreDownloadFollowRedirects,
36123612
AllowVolumeReSizeBeyondAllocation,
3613-
PrimaryStorageHostConnectWorkers
3613+
StoragePoolHostConnectWorkers
36143614
};
36153615
}
36163616

0 commit comments

Comments
 (0)