Content-Length: 275110 | pFad | http://github.com/postgrespro/postgres_cluster/commit/cf557661610e8dc315513bba6363d4fc2e4917d9
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af8b8d1 commit cf55766Copy full SHA for cf55766
multimaster.c
@@ -218,6 +218,7 @@ char const* const MtmTxnStatusMnem[] =
218
bool MtmDoReplication;
219
char* MtmDatabaseName;
220
char* MtmDatabaseUser;
221
+Oid MtmDatabaseId;
222
223
int MtmNodes;
224
int MtmNodeId;
@@ -938,6 +939,12 @@ MtmPrePrepareTransaction(MtmCurrentTrans* x)
938
939
bool found;
940
MTM_TXTRACE(x, "PrePrepareTransaction Start");
941
942
+ if (!MtmDatabaseId)
943
+ MtmDatabaseId = get_database_oid(MtmDatabaseName, false);
944
+
945
+ if (MtmDatabaseId != MyDatabaseId)
946
+ MTM_ELOG(ERROR, "Refusing to work. Multimaster configured to work with database '%s'", MtmDatabaseName);
947
948
if (!x->isDistributed) {
949
return;
950
}
Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/cf557661610e8dc315513bba6363d4fc2e4917d9
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy
0 commit comments