@@ -16,7 +16,7 @@ class TPropose: public TSubOperationState {
16
16
17
17
TString DebugHint () const override {
18
18
return TStringBuilder ()
19
- << " TAlterExternalDataSource TPropose"
19
+ << " TReplaceExternalDataSource TPropose"
20
20
<< " , operationId: " << OperationId;
21
21
}
22
22
@@ -34,7 +34,7 @@ class TPropose: public TSubOperationState {
34
34
35
35
const TTxState* txState = context.SS ->FindTx (OperationId);
36
36
Y_ABORT_UNLESS (txState);
37
- Y_ABORT_UNLESS (txState->TxType == TTxState::TxAlterExternalDataSource );
37
+ Y_ABORT_UNLESS (txState->TxType == TTxState::TxReplaceExternalDataSource );
38
38
39
39
const auto pathId = txState->TargetPathId ;
40
40
const auto path = TPath::Init (pathId, context.SS );
@@ -56,14 +56,14 @@ class TPropose: public TSubOperationState {
56
56
57
57
const TTxState* txState = context.SS ->FindTx (OperationId);
58
58
Y_ABORT_UNLESS (txState);
59
- Y_ABORT_UNLESS (txState->TxType == TTxState::TxAlterExternalDataSource );
59
+ Y_ABORT_UNLESS (txState->TxType == TTxState::TxReplaceExternalDataSource );
60
60
61
61
context.OnComplete .ProposeToCoordinator (OperationId, txState->TargetPathId , TStepId (0 ));
62
62
return false ;
63
63
}
64
64
};
65
65
66
- class TAlterExternalDataSource : public TSubOperation {
66
+ class TReplaceExternalDataSource : public TSubOperation {
67
67
static TTxState::ETxState NextState () { return TTxState::Propose; }
68
68
69
69
TTxState::ETxState NextState (TTxState::ETxState state) const override {
@@ -152,7 +152,7 @@ class TAlterExternalDataSource : public TSubOperation {
152
152
void CreateTransaction (const TOperationContext& context,
153
153
const TPathId& externalDataSourcePathId) const {
154
154
TTxState& txState = context.SS ->CreateTx (OperationId,
155
- TTxState::TxAlterExternalDataSource ,
155
+ TTxState::TxReplaceExternalDataSource ,
156
156
externalDataSourcePathId);
157
157
txState.Shards .clear ();
158
158
}
@@ -207,7 +207,7 @@ class TAlterExternalDataSource : public TSubOperation {
207
207
Transaction.GetCreateExternalDataSource ();
208
208
const TString& name = externalDataSourceDescription.GetName ();
209
209
210
- LOG_N (" TAlterExternalDataSource Propose"
210
+ LOG_N (" TReplaceExternalDataSource Propose"
211
211
<< " : opId# " << OperationId << " , path# " << parentPathStr << " /" << name);
212
212
213
213
auto result = MakeHolder<TProposeResponse>(NKikimrScheme::StatusAccepted,
@@ -258,13 +258,13 @@ class TAlterExternalDataSource : public TSubOperation {
258
258
}
259
259
260
260
void AbortPropose (TOperationContext& context) override {
261
- LOG_N (" TAlterExternalDataSource AbortPropose"
261
+ LOG_N (" TReplaceExternalDataSource AbortPropose"
262
262
<< " : opId# " << OperationId);
263
- Y_ABORT (" no AbortPropose for TAlterExternalDataSource " );
263
+ Y_ABORT (" no AbortPropose for TReplaceExternalDataSource " );
264
264
}
265
265
266
266
void AbortUnsafe (TTxId forceDropTxId, TOperationContext& context) override {
267
- LOG_N (" TAlterExternalDataSource AbortUnsafe"
267
+ LOG_N (" TReplaceExternalDataSource AbortUnsafe"
268
268
<< " : opId# " << OperationId << " , txId# " << forceDropTxId);
269
269
context.OnComplete .DoneOperation (OperationId);
270
270
}
@@ -274,13 +274,13 @@ class TAlterExternalDataSource : public TSubOperation {
274
274
275
275
namespace NKikimr ::NSchemeShard {
276
276
277
- ISubOperation::TPtr CreateAlterExternalDataSource (TOperationId id, const TTxTransaction& tx) {
278
- return MakeSubOperation<TAlterExternalDataSource >(id, tx);
277
+ ISubOperation::TPtr CreateReplaceExternalDataSource (TOperationId id, const TTxTransaction& tx) {
278
+ return MakeSubOperation<TReplaceExternalDataSource >(id, tx);
279
279
}
280
280
281
- ISubOperation::TPtr CreateAlterExternalDataSource (TOperationId id, TTxState::ETxState state) {
281
+ ISubOperation::TPtr CreateReplaceExternalDataSource (TOperationId id, TTxState::ETxState state) {
282
282
Y_ABORT_UNLESS (state != TTxState::Invalid);
283
- return MakeSubOperation<TAlterExternalDataSource >(id, state);
283
+ return MakeSubOperation<TReplaceExternalDataSource >(id, state);
284
284
}
285
285
286
286
}
0 commit comments