Skip to content

Commit 746b5ff

Browse files
committed
Merge branch 'master' of github.com:postgrespro/postgres_cluster
2 parents 2422361 + d9e27e3 commit 746b5ff

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

contrib/multimaster/multimaster.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ static BackgroundWorker DtmWorker = {
158158

159159
static void DumpSnapshot(Snapshot s, char *name)
160160
{
161+
#ifdef DUMP_SNAPSHOT
161162
int i;
162163
char buf[10000];
163164
char *cursor = buf;
@@ -175,6 +176,7 @@ static void DumpSnapshot(Snapshot s, char *name)
175176
}
176177
cursor += sprintf(cursor, "]");
177178
XTM_INFO("%s\n", buf);
179+
#endif
178180
}
179181

180182
/* In snapshots provided by DTMD xip array is sorted, so we can use bsearch */
@@ -244,7 +246,9 @@ static void DtmMergeWithGlobalSnapshot(Snapshot dst)
244246
for (xid = dst->xmax; xid < src->xmax; xid++)
245247
if (TransactionIdIsInDoubt(xid))
246248
goto GetLocalSnapshot;
247-
DumpSnapshot(dst, "local");
249+
250+
GetCurrentTransactionId();
251+
DumpSnapshot(dst, "local");
248252
DumpSnapshot(src, "DTM");
249253

250254
if (src->xmax < dst->xmax) dst->xmax = src->xmax;
@@ -764,6 +768,7 @@ DtmXactCallback(XactEvent event, void *arg)
764768
MMBeginTransaction();
765769
}
766770
break;
771+
#if 0
767772
case XACT_EVENT_PRE_COMMIT:
768773
case XACT_EVENT_PARALLEL_PRE_COMMIT:
769774
{
@@ -774,6 +779,7 @@ DtmXactCallback(XactEvent event, void *arg)
774779
}
775780
break;
776781
}
782+
#endif
777783
case XACT_EVENT_COMMIT:
778784
case XACT_EVENT_ABORT:
779785
if (TransactionIdIsValid(DtmNextXid))

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