We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentd63b397 commitd401df6Copy full SHA for d401df6
contrib/pg_dtm/dtmd/include/ddd.h
@@ -34,6 +34,6 @@ typedef struct Graph
34
35
externvoidinitGraph(Graph*graph);
36
externvoidaddSubgraph(Instance*instance,Graph*graph,xid_t*xids,intn_xids);
37
-externboolfindLoop(Graph*graph,xid_troot);
+externboolfindCycle(Graph*graph,xid_troot);
38
39
#endif
contrib/pg_dtm/dtmd/src/ddd.c
@@ -119,7 +119,7 @@ static bool recursiveTraverseGraph(Vertex* root, Vertex* v, int marker)
119
return false;
120
}
121
122
-boolfindLoop(Graph*graph,xid_troot)
+boolfindCycle(Graph*graph,xid_troot)
123
{
124
Vertex*v;
125
for (v=graph->hashtable[root %MAX_TRANSACTIONS];v!=NULL;v=v->next) {
contrib/pg_dtm/dtmd/src/main.c
@@ -547,7 +547,7 @@ static void ondeadlock(client_t client, int argc, xid_t *argv) {
547
xid_troot=argv[1];
548
Instance*instance=&CLIENT_USERDATA(client)->instance;
549
addSubgraph(instance,&graph,argv+2,argc-2);
550
-boolhasDeadLock=findLoop(&graph,root);
+boolhasDeadLock=findCycle(&graph,root);
551
client_message_shortcut(client,hasDeadLock ?RES_DEADLOCK :RES_OK);
552
553
contrib/pg_dtm/pg_dtm.c
@@ -445,7 +445,7 @@ DtmGetNewTransactionId(bool isSubXact)
445
446
if (IsUnderPostmaster&&TransactionIdFollowsOrEquals(xid,xidStopLimit))
447
448
-charoldest_datname=get_database_name(oldest_datoid);
+char*oldest_datname=get_database_name(oldest_datoid);
449
450
/* complain even if that DB has disappeared */
451
if (oldest_datname)
@@ -466,7 +466,7 @@ DtmGetNewTransactionId(bool isSubXact)
466
else
467
if (TransactionIdFollowsOrEquals(xid,xidWarnLimit))
468
469
470
471
472