@@ -805,7 +805,7 @@ struct TSchemeShard::TTxInit : public TTransactionBase<TSchemeShard> {
805
805
return true ;
806
806
}
807
807
808
- typedef std::tuple<TPathId, TString, TString, TString, TString, bool , TString, ui32, bool , bool > TBackupSettingsRec;
808
+ typedef std::tuple<TPathId, TString, TString, TString, TString, bool , TString, ui32, bool , bool , TString > TBackupSettingsRec;
809
809
typedef TDeque<TBackupSettingsRec> TBackupSettingsRows;
810
810
811
811
template <typename SchemaTable, typename TRowSet>
@@ -819,7 +819,8 @@ struct TSchemeShard::TTxInit : public TTransactionBase<TSchemeShard> {
819
819
rowSet.template GetValueOrDefault <typename SchemaTable::TableDescription>(" " ),
820
820
rowSet.template GetValueOrDefault <typename SchemaTable::NumberOfRetries>(0 ),
821
821
rowSet.template GetValueOrDefault <typename SchemaTable::EnableChecksums>(false ),
822
- rowSet.template GetValueOrDefault <typename SchemaTable::EnablePermissions>(false )
822
+ rowSet.template GetValueOrDefault <typename SchemaTable::EnablePermissions>(false ),
823
+ rowSet.template GetValueOrDefault <typename SchemaTable::ChangefeedUnderlyingTopics>(" " )
823
824
);
824
825
}
825
826
@@ -3804,6 +3805,7 @@ struct TSchemeShard::TTxInit : public TTransactionBase<TSchemeShard> {
3804
3805
ui32 nRetries = std::get<7 >(rec);
3805
3806
bool enableChecksums = std::get<8 >(rec);
3806
3807
bool enablePermissions = std::get<9 >(rec);
3808
+ TString changefeedUnderlyingTopics = std::get<10 >(rec);
3807
3809
3808
3810
Y_ABORT_UNLESS (tableName.size () > 0 );
3809
3811
@@ -3835,6 +3837,14 @@ struct TSchemeShard::TTxInit : public TTransactionBase<TSchemeShard> {
3835
3837
auto desc = tableInfo->BackupSettings .MutableTable ();
3836
3838
Y_ABORT_UNLESS (ParseFromStringNoSizeLimit (*desc, tableDesc));
3837
3839
}
3840
+
3841
+ if (changefeedUnderlyingTopics) {
3842
+ NKikimrSchemeOp::TChangefeedUnderlyingTopics wrapperOverTopics;
3843
+ Y_ABORT_UNLESS (ParseFromStringNoSizeLimit (wrapperOverTopics, changefeedUnderlyingTopics));
3844
+ for (const auto & topic : wrapperOverTopics.GetChangefeedUnderlyingTopics ()) {
3845
+ *tableInfo->BackupSettings .AddChangefeedUnderlyingTopics () = topic;
3846
+ }
3847
+ }
3838
3848
3839
3849
LOG_DEBUG_S (ctx, NKikimrServices::FLAT_TX_SCHEMESHARD, " Loaded backup settings"
3840
3850
<< " , pathId: " << pathId
0 commit comments