Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd401df6

Browse files
committed
Rename loop to cycle
1 parentd63b397 commitd401df6

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

‎contrib/pg_dtm/dtmd/include/ddd.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ typedef struct Graph
3434

3535
externvoidinitGraph(Graph*graph);
3636
externvoidaddSubgraph(Instance*instance,Graph*graph,xid_t*xids,intn_xids);
37-
externboolfindLoop(Graph*graph,xid_troot);
37+
externboolfindCycle(Graph*graph,xid_troot);
3838

3939
#endif

‎contrib/pg_dtm/dtmd/src/ddd.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ static bool recursiveTraverseGraph(Vertex* root, Vertex* v, int marker)
119119
return false;
120120
}
121121

122-
boolfindLoop(Graph*graph,xid_troot)
122+
boolfindCycle(Graph*graph,xid_troot)
123123
{
124124
Vertex*v;
125125
for (v=graph->hashtable[root %MAX_TRANSACTIONS];v!=NULL;v=v->next) {

‎contrib/pg_dtm/dtmd/src/main.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ static void ondeadlock(client_t client, int argc, xid_t *argv) {
547547
xid_troot=argv[1];
548548
Instance*instance=&CLIENT_USERDATA(client)->instance;
549549
addSubgraph(instance,&graph,argv+2,argc-2);
550-
boolhasDeadLock=findLoop(&graph,root);
550+
boolhasDeadLock=findCycle(&graph,root);
551551
client_message_shortcut(client,hasDeadLock ?RES_DEADLOCK :RES_OK);
552552
}
553553

‎contrib/pg_dtm/pg_dtm.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ DtmGetNewTransactionId(bool isSubXact)
445445

446446
if (IsUnderPostmaster&&TransactionIdFollowsOrEquals(xid,xidStopLimit))
447447
{
448-
charoldest_datname=get_database_name(oldest_datoid);
448+
char*oldest_datname=get_database_name(oldest_datoid);
449449

450450
/* complain even if that DB has disappeared */
451451
if (oldest_datname)
@@ -466,7 +466,7 @@ DtmGetNewTransactionId(bool isSubXact)
466466
else
467467
if (TransactionIdFollowsOrEquals(xid,xidWarnLimit))
468468
{
469-
charoldest_datname=get_database_name(oldest_datoid);
469+
char*oldest_datname=get_database_name(oldest_datoid);
470470

471471
/* complain even if that DB has disappeared */
472472
if (oldest_datname)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp