Skip to content

Commit 096961f

Browse files
committed
fixes #21: create dummy portal
1 parent 4383ff4 commit 096961f

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

contrib/mmts/bgwpool.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
#include "storage/pg_sema.h"
99
#include "storage/shmem.h"
1010
#include "datatype/timestamp.h"
11+
#include "utils/portal.h"
12+
#include "tcop/pquery.h"
1113

1214
#include "bgwpool.h"
1315

@@ -23,6 +25,9 @@ static void BgwPoolMainLoop(BgwPool* pool)
2325

2426
BackgroundWorkerUnblockSignals();
2527
BackgroundWorkerInitializeConnection(pool->dbname, pool->dbuser);
28+
ActivePortal = CreatePortal("", true, true);
29+
ActivePortal->status = PORTAL_ACTIVE;
30+
ActivePortal->sourceText = "";
2631

2732
while(true) {
2833
PGSemaphoreLock(&pool->available);

contrib/mmts/tests2/docker-entrypoint.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ if [ "$1" = 'postgres' ]; then
8181
log_autovacuum_min_duration = 0
8282
8383
multimaster.workers = 4
84+
multimaster.use_raftable = false
8485
multimaster.max_nodes = 3
8586
multimaster.use_raftable = true
8687
multimaster.queue_size=52857600

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy