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())
|
if (!tables_to_sync.empty())
|
||||||
syncTables();
|
|
||||||
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
if(commited)
|
syncTables();
|
||||||
{
|
|
||||||
updateLsn();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
else if (commited)
|
||||||
|
{
|
||||||
|
updateLsn();
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user