@@ -774,10 +774,10 @@ namespace NKikimr::NGRpcProxy::V1 {
774774 auto pqTabletConfigPartStrategy = pqTabletConfig->MutablePartitionStrategy ();
775775
776776 pqTabletConfigPartStrategy->SetMinPartitionCount (minParts);
777- pqTabletConfigPartStrategy->SetMaxPartitionCount (IfEqualThenDefault (autoScalteSettings.max_active_partitions (), 0L , 1L ));
777+ pqTabletConfigPartStrategy->SetMaxPartitionCount (IfEqualThenDefault< int64_t > (autoScalteSettings.max_active_partitions (), 0L , 1L ));
778778 pqTabletConfigPartStrategy->SetScaleUpPartitionWriteSpeedThresholdPercent (IfEqualThenDefault (autoScalteSettings.partition_write_speed ().scale_up_threshold_percent (), 0 ,30 ));
779779 pqTabletConfigPartStrategy->SetScaleDownPartitionWriteSpeedThresholdPercent (IfEqualThenDefault (autoScalteSettings.partition_write_speed ().scale_down_threshold_percent (), 0 , 90 ));
780- pqTabletConfigPartStrategy->SetScaleThresholdSeconds (IfEqualThenDefault (autoScalteSettings.partition_write_speed ().threshold_time ().seconds (), 0L , 300L ));
780+ pqTabletConfigPartStrategy->SetScaleThresholdSeconds (IfEqualThenDefault< int64_t > (autoScalteSettings.partition_write_speed ().threshold_time ().seconds (), 0L , 300L ));
781781 switch (autoScalteSettings.strategy ()) {
782782 case ::Ydb::PersQueue::V1::AutoscalingStrategy::AUTOSCALING_STRATEGY_SCALE_UP:
783783 pqTabletConfigPartStrategy->SetPartitionStrategyType (::NKikimrPQ::TPQTabletConfig_TPartitionStrategyType::TPQTabletConfig_TPartitionStrategyType_CAN_SPLIT);
@@ -1099,10 +1099,10 @@ namespace NKikimr::NGRpcProxy::V1 {
10991099 auto pqTabletConfigPartStrategy = pqTabletConfig->MutablePartitionStrategy ();
11001100 auto autoscaleSettings = settings.autoscaling_settings ();
11011101 pqTabletConfigPartStrategy->SetMinPartitionCount (minParts);
1102- pqTabletConfigPartStrategy->SetMaxPartitionCount (IfEqualThenDefault (settings.max_active_partitions (),0L ,1L ));
1102+ pqTabletConfigPartStrategy->SetMaxPartitionCount (IfEqualThenDefault< int64_t > (settings.max_active_partitions (),0L ,1L ));
11031103 pqTabletConfigPartStrategy->SetScaleUpPartitionWriteSpeedThresholdPercent (IfEqualThenDefault (autoscaleSettings.partition_write_speed ().scale_up_threshold_percent (), 0 , 90 ));
11041104 pqTabletConfigPartStrategy->SetScaleDownPartitionWriteSpeedThresholdPercent (IfEqualThenDefault (autoscaleSettings.partition_write_speed ().scale_down_threshold_percent (), 0 , 30 ));
1105- pqTabletConfigPartStrategy->SetScaleThresholdSeconds (IfEqualThenDefault (autoscaleSettings.partition_write_speed ().threshold_time ().seconds (), 0L , 300L ));
1105+ pqTabletConfigPartStrategy->SetScaleThresholdSeconds (IfEqualThenDefault< int64_t > (autoscaleSettings.partition_write_speed ().threshold_time ().seconds (), 0L , 300L ));
11061106 switch (autoscaleSettings.strategy ()) {
11071107 case ::Ydb::Topic::AutoscalingStrategy::AUTOSCALING_STRATEGY_SCALE_UP:
11081108 pqTabletConfigPartStrategy->SetPartitionStrategyType (::NKikimrPQ::TPQTabletConfig_TPartitionStrategyType::TPQTabletConfig_TPartitionStrategyType_CAN_SPLIT);
0 commit comments