Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion ydb/core/tx/schemeshard/schemeshard_cdc_stream_scan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ class TCdcStreamScanFinalizer: public TActorBootstrapped<TCdcStreamScanFinalizer
void Handle(TEvTxUserProxy::TEvAllocateTxIdResult::TPtr& ev) {
Request->Record.SetTxId(ev->Get()->TxId);
Send(SSActorId, Request.Release());
TActorBootstrapped::PassAway();
}

private:
Expand Down Expand Up @@ -126,7 +127,7 @@ struct TSchemeShard::TCdcStreamScan::TTxProgress: public TTransactionBase<TSchem
}

if (Finalize) {
Self->CdcStreamScanFinalizer = ctx.Register(new TCdcStreamScanFinalizer(ctx.SelfID, std::move(Finalize)));
ctx.Register(new TCdcStreamScanFinalizer(ctx.SelfID, std::move(Finalize)));
}
}

Expand Down
4 changes: 0 additions & 4 deletions ydb/core/tx/schemeshard/schemeshard_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4512,10 +4512,6 @@ void TSchemeShard::Die(const TActorContext &ctx) {
ctx.Send(TabletMigrator, new TEvents::TEvPoisonPill());
}

if (CdcStreamScanFinalizer) {
ctx.Send(CdcStreamScanFinalizer, new TEvents::TEvPoisonPill());
}

IndexBuildPipes.Shutdown(ctx);
CdcStreamScanPipes.Shutdown(ctx);
ShardDeleter.Shutdown(ctx);
Expand Down
1 change: 0 additions & 1 deletion ydb/core/tx/schemeshard/schemeshard_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,6 @@ class TSchemeShard

TActorId TabletMigrator;

TActorId CdcStreamScanFinalizer;
ui32 MaxCdcInitialScanShardsInFlight = 10;

TDuration StatsMaxExecuteTime;
Expand Down
Loading