File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -764,10 +764,6 @@ namespace NKikimr::NGRpcProxy::V1 {
764764 }
765765
766766 if (settings.has_partitions_count ()) {
767- if (settings.partitions_count () <= 0 ) {
768- error = TStringBuilder () << " Partitions count must be positive, provided " << settings.partitions_count ();
769- return Ydb::StatusIds::BAD_REQUEST;
770- }
771767 minParts = settings.partitions_count ();
772768 } else if (settings.has_autoscaling_settings ()) {
773769 const auto & autoScalteSettings = settings.autoscaling_settings ();
@@ -798,6 +794,10 @@ namespace NKikimr::NGRpcProxy::V1 {
798794 }
799795 }
800796 }
797+ if (minParts <= 0 ) {
798+ error = TStringBuilder () << " Partitions count must be positive, provided " << settings.partitions_count ();
799+ return Ydb::StatusIds::BAD_REQUEST;
800+ }
801801 pqDescr->SetTotalGroupCount (minParts);
802802 pqTabletConfig->SetRequireAuthWrite (true );
803803 pqTabletConfig->SetRequireAuthRead (true );
You can’t perform that action at this time.
0 commit comments