@@ -158,6 +158,7 @@ static BackgroundWorker DtmWorker = {
158158
159159static 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