Skip to content

Commit 0acef37

Browse files
committed
Exclude tmp from backup/replication (#25736)
1 parent ccaee58 commit 0acef37

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

ydb/core/grpc_services/rpc_export.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@ class TExportRPC: public TRpcOperationRequestActor<TDerived, TEvRequest, true>,
294294
// Skip children that we don't want to export
295295
if (child.Name.StartsWith("~")
296296
|| child.Name.StartsWith(".sys")
297+
|| child.Name.StartsWith(".tmp")
297298
|| child.Name.StartsWith(".metadata")
298299
|| child.Name.StartsWith("export-"))
299300
{

ydb/core/tx/replication/controller/target_discoverer.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ class TTargetDiscoverer: public TActorBootstrapped<TTargetDiscoverer> {
241241

242242
return entry.Name.starts_with("~")
243243
|| entry.Name.starts_with(".sys")
244+
|| entry.Name.starts_with(".tmp")
244245
|| entry.Name.starts_with(".metadata")
245246
|| entry.Name.starts_with("export-");
246247
}

0 commit comments

Comments
 (0)