@@ -805,7 +805,7 @@ struct TSchemeShard::TTxInit : public TTransactionBase<TSchemeShard> {
805805 return true ;
806806 }
807807
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;
809809 typedef TDeque<TBackupSettingsRec> TBackupSettingsRows;
810810
811811 template <typename SchemaTable, typename TRowSet>
@@ -819,7 +819,8 @@ struct TSchemeShard::TTxInit : public TTransactionBase<TSchemeShard> {
819819 rowSet.template GetValueOrDefault <typename SchemaTable::TableDescription>(" " ),
820820 rowSet.template GetValueOrDefault <typename SchemaTable::NumberOfRetries>(0 ),
821821 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>(" " )
823824 );
824825 }
825826
@@ -3804,6 +3805,7 @@ struct TSchemeShard::TTxInit : public TTransactionBase<TSchemeShard> {
38043805 ui32 nRetries = std::get<7 >(rec);
38053806 bool enableChecksums = std::get<8 >(rec);
38063807 bool enablePermissions = std::get<9 >(rec);
3808+ TString changefeedUnderlyingTopics = std::get<10 >(rec);
38073809
38083810 Y_ABORT_UNLESS (tableName.size () > 0 );
38093811
@@ -3835,6 +3837,14 @@ struct TSchemeShard::TTxInit : public TTransactionBase<TSchemeShard> {
38353837 auto desc = tableInfo->BackupSettings .MutableTable ();
38363838 Y_ABORT_UNLESS (ParseFromStringNoSizeLimit (*desc, tableDesc));
38373839 }
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+ }
38383848
38393849 LOG_DEBUG_S (ctx, NKikimrServices::FLAT_TX_SCHEMESHARD, " Loaded backup settings"
38403850 << " , pathId: " << pathId
0 commit comments