Skip to content

Commit 1b16d34

Browse files
committed
Review suggestion: add unspecified state for proto
1 parent 7225fcc commit 1b16d34

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

ydb/core/protos/tx_datashard.proto

+1
Original file line numberDiff line numberDiff line change
@@ -1505,6 +1505,7 @@ message TEvLocalKMeansRequest {
15051505
optional uint32 K = 10;
15061506

15071507
enum EState {
1508+
UNSPECIFIED = 0;
15081509
SAMPLE = 1;
15091510
KMEANS = 2;
15101511
UPLOAD_MAIN_TO_TMP = 3;

ydb/core/tx/datashard/local_kmeans.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -608,8 +608,8 @@ class TLocalKMeansScan final: public TLocalKMeansScanBase, private TCalculation<
608608
return FeedUploadTmp2Tmp(key, row);
609609
case EState::UPLOAD_TMP_TO_POSTING:
610610
return FeedUploadTmp2Posting(key, row);
611-
case EState::DONE:
612-
Y_UNREACHABLE();
611+
default:
612+
return EScan::Final;
613613
}
614614
}
615615

0 commit comments

Comments
 (0)