Skip to content

Commit bfc2173

Browse files
committed
fix
1 parent bc9c4ee commit bfc2173

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

ydb/core/tx/datashard/change_exchange_impl.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
#include "defs.h"
44
#include "change_exchange_helpers.h"
55

6-
#include <ydb/core/scheme/scheme_tabledefs.h>
7-
86
namespace NKikimr {
97
namespace NDataShard {
108

ydb/core/tx/datashard/incr_restore_scan.cpp

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class TIncrementalRestoreScan
3131
<< "[TIncrementalRestoreScan]"
3232
<< "[" << TxId << "]"
3333
<< "[" << SourcePathId << "]"
34-
<< "[" << SourcePathId << "]"
34+
<< "[" << TargetPathId << "]"
3535
<< SelfId() /* contains brackets */ << " ";
3636
}
3737

@@ -41,10 +41,10 @@ class TIncrementalRestoreScan
4141
explicit TIncrementalRestoreScan(
4242
TActorId parent,
4343
std::function<TActorId(const TActorContext& ctx)> changeSenderFactory,
44-
ui64 txId,
4544
const TPathId& sourcePathId,
4645
TUserTable::TCPtr table,
4746
const TPathId& targetPathId,
47+
ui64 txId,
4848
NStreamScan::TLimits limits)
4949
: IActorCallback(static_cast<TReceiveFunc>(&TIncrementalRestoreScan::StateWork), NKikimrServices::TActivity::INCREMENTAL_RESTORE_SCAN_ACTOR)
5050
, Parent(parent)
@@ -54,6 +54,9 @@ class TIncrementalRestoreScan
5454
, TargetPathId(targetPathId)
5555
, ValueTags(InitValueTags(table))
5656
, Limits(limits)
57+
, Columns(table->Columns)
58+
, KeyColumnTypes(table->KeyColumnTypes)
59+
, KeyColumnIds(table->KeyColumnIds)
5760
{}
5861

5962
static TVector<TTag> InitValueTags(TUserTable::TCPtr table) {
@@ -154,7 +157,6 @@ class TIncrementalRestoreScan
154157
}
155158

156159
EScan Feed(TArrayRef<const TCell> key, const TRow& row) noexcept override {
157-
158160
Buffer.AddRow(key, *row);
159161
if (Buffer.Bytes() < Limits.BatchMaxBytes) {
160162
if (Buffer.Rows() < Limits.BatchMaxRows) {
@@ -270,7 +272,7 @@ class TIncrementalRestoreScan
270272
THolder<NTable::IScan> CreateIncrementalRestoreScan(
271273
NActors::TActorId parent,
272274
std::function<TActorId(const TActorContext& ctx)> changeSenderFactory,
273-
TPathId sourcePathId,
275+
const TPathId& sourcePathId,
274276
TUserTable::TCPtr table,
275277
const TPathId& targetPathId,
276278
ui64 txId,
@@ -279,10 +281,10 @@ THolder<NTable::IScan> CreateIncrementalRestoreScan(
279281
return MakeHolder<TIncrementalRestoreScan>(
280282
parent,
281283
changeSenderFactory,
282-
txId,
283284
sourcePathId,
284285
table,
285286
targetPathId,
287+
txId,
286288
limits);
287289
}
288290

ydb/core/tx/datashard/incr_restore_scan.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ struct TEvIncrementalRestoreScan {
3030
THolder<NTable::IScan> CreateIncrementalRestoreScan(
3131
NActors::TActorId parent,
3232
std::function<TActorId(const TActorContext& ctx)> changeSenderFactory,
33-
TPathId tablePathId,
33+
const TPathId& sourcePathId,
3434
TUserTable::TCPtr table,
3535
const TPathId& targetPathId,
3636
ui64 txId,

0 commit comments

Comments
 (0)