Skip to content

Commit 7e33103

Browse files
committed
Remove unnecessary call adjustCreateQueryForBackup() for replicated databases.
1 parent 063c439 commit 7e33103

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/Databases/DatabaseReplicated.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1993,14 +1993,13 @@ DatabaseReplicated::getTablesForBackup(const FilterByNameFunction & filter, cons
19931993

19941994
StoragePtr storage;
19951995
if (create.uuid != UUIDHelpers::Nil)
1996-
{
19971996
storage = DatabaseCatalog::instance().tryGetByUUID(create.uuid).second;
1998-
if (storage)
1999-
storage->adjustCreateQueryForBackup(create_table_query);
2000-
}
20011997

2002-
/// `storage` is allowed to be null here. In this case it means that this storage exists on other replicas
2003-
/// but it has not been created on this replica yet.
1998+
/// Pointer `storage` is allowed to be null here (that means that this storage exists on other replicas
1999+
/// but it has not been created on this replica yet).
2000+
2001+
/// There is no need to call `storage->adjustCreateQueryForBackup()` here
2002+
/// because a consistent metadata snapshot contains already adjusted table definitions.
20042003

20052004
res.emplace_back(create_table_query, storage);
20062005
}

0 commit comments

Comments
 (0)