support for read replicas with postgres

This commit is contained in:
CJ Cobb
2021-04-28 19:02:44 +00:00
parent 0cfce33724
commit 5ebc515978
6 changed files with 8 additions and 7 deletions

View File

@@ -625,9 +625,10 @@ PostgresBackend::fetchAccountTransactions(
} // namespace Backend
void
PostgresBackend::open()
PostgresBackend::open(bool readOnly)
{
initSchema(pgPool_);
if (!readOnly)
initSchema(pgPool_);
}
void