mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 17:41:59 +00:00
Update MaterializedPostgreSQLConsumer.cpp
This commit is contained in:
parent
0827e87d45
commit
4486f26d51
@ -833,15 +833,14 @@ bool MaterializedPostgreSQLConsumer::readFromReplicationSlot()
|
||||
}
|
||||
|
||||
if (!tables_to_sync.empty())
|
||||
syncTables();
|
||||
|
||||
else
|
||||
{
|
||||
if(commited)
|
||||
{
|
||||
updateLsn();
|
||||
}
|
||||
syncTables();
|
||||
}
|
||||
else if (commited)
|
||||
{
|
||||
updateLsn();
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user