JAkutenshi commented on code in PR #7324:
URL: https://github.com/apache/ignite-3/pull/7324#discussion_r2683204962


##########
modules/catalog/src/main/java/org/apache/ignite/internal/catalog/commands/CatalogUtils.java:
##########
@@ -589,25 +591,26 @@ public static boolean shouldCreateNewDefaultZone(Catalog 
catalog, @Nullable Stri
      */
     public static CatalogZoneDescriptor createDefaultZoneDescriptor(
             Catalog catalog,
+            PartitionCountProvider partitionCountProvider,
             int newDefaultZoneId,
             Collection<UpdateEntry> updateEntries
     ) throws CatalogValidationException {
         // TODO: Remove after 
https://issues.apache.org/jira/browse/IGNITE-26798
         checkDuplicateDefaultZoneName(catalog);
 
-        CatalogZoneDescriptor defaultZone = 
createDefaultZoneDescriptor(newDefaultZoneId);
+        CatalogZoneDescriptor defaultZone = 
createDefaultZoneDescriptor(partitionCountProvider, newDefaultZoneId);
 
         updateEntries.add(new NewZoneEntry(defaultZone));
         updateEntries.add(new SetDefaultZoneEntry(defaultZone.id()));
 
         return defaultZone;
     }
 
-    private static CatalogZoneDescriptor createDefaultZoneDescriptor(int 
newDefaultZoneId) {
+    private static CatalogZoneDescriptor 
createDefaultZoneDescriptor(PartitionCountProvider partitionCountProvider, int 
newDefaultZoneId) {
         return new CatalogZoneDescriptor(
                 newDefaultZoneId,
                 DEFAULT_ZONE_NAME,
-                DEFAULT_PARTITION_COUNT,
+                defaultZonePartitionCount(partitionCountProvider),

Review Comment:
   Aha, I see now. Refactored.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to