Skip to content

Commit cbdb793

Browse files
committed
fix
1 parent fca5d5c commit cbdb793

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ydb/services/lib/actors/pq_schema_actor.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)