@@ -306,6 +306,14 @@ var DynamicSettings = [...]*protos.DynamicSetting{
306306 ApplyMode : protos .DynconfApplyMode_APPLY_MODE_AFTER_RESUME ,
307307 TargetForSetting : protos .DynconfTarget_CLICKHOUSE ,
308308 },
309+ {
310+ Name : "PEERDB_CLICKHOUSE_INITIAL_LOAD_ALLOW_NON_EMPTY_TABLES" ,
311+ Description : "Disables validation raising error if destination table of initial load is not empty" ,
312+ DefaultValue : "false" ,
313+ ValueType : protos .DynconfValueType_BOOL ,
314+ ApplyMode : protos .DynconfApplyMode_APPLY_MODE_NEW_MIRROR ,
315+ TargetForSetting : protos .DynconfTarget_CLICKHOUSE ,
316+ },
309317 {
310318 Name : "PEERDB_SKIP_SNAPSHOT_EXPORT" ,
311319 Description : "This avoids initial load failing due to connectivity drops, but risks data consistency unless precautions are taken" ,
@@ -625,6 +633,10 @@ func PeerDBClickHouseInitialLoadPartsPerPartition(ctx context.Context, env map[s
625633 return dynamicConfUnsigned [uint64 ](ctx , env , "PEERDB_CLICKHOUSE_INITIAL_LOAD_PARTS_PER_PARTITION" )
626634}
627635
636+ func PeerDBClickHouseInitialLoadAllowNonEmptyTables (ctx context.Context , env map [string ]string ) (bool , error ) {
637+ return dynamicConfBool (ctx , env , "PEERDB_CLICKHOUSE_INITIAL_LOAD_ALLOW_NON_EMPTY_TABLES" )
638+ }
639+
628640func PeerDBSkipSnapshotExport (ctx context.Context , env map [string ]string ) (bool , error ) {
629641 return dynamicConfBool (ctx , env , "PEERDB_SKIP_SNAPSHOT_EXPORT" )
630642}
0 commit comments