Update MaterializedPostgreSQLConsumer.cpp

This commit is contained in:
Kseniia Sumarokova 2022-08-24 12:23:08 +02:00 committed by GitHub
parent 0827e87d45
commit 4486f26d51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -833,15 +833,14 @@ bool MaterializedPostgreSQLConsumer::readFromReplicationSlot()
}
if (!tables_to_sync.empty())
syncTables();
else
{
if(commited)
{
updateLsn();
}
syncTables();
}
else if (commited)
{
updateLsn();
}
return true;
}