Skip to content

Commit 4a59a18

Browse files
committed
fix GetLockedGlobalTransactionId prototype
1 parent 1898600 commit 4a59a18

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/backend/access/transam/twophase.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2221,7 +2221,8 @@ RecordTransactionAbortPrepared(TransactionId xid,
22212221
/*
22222222
* Return identified of current global transaction
22232223
*/
2224-
const char* GetLockedGlobalTransactionId()
2224+
const char*
2225+
GetLockedGlobalTransactionId(void)
22252226
{
2226-
return MyLockedGxact ? MyLockedGxact->gid : NULL;
2227+
return MyLockedGxact ? MyLockedGxact->gid : NULL;
22272228
}

src/include/access/twophase.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,6 @@ extern void CheckPointTwoPhase(XLogRecPtr redo_horizon);
5656

5757
extern void FinishPreparedTransaction(const char *gid, bool isCommit);
5858

59-
extern const char* GetLockedGlobalTransactionId();
59+
extern const char* GetLockedGlobalTransactionId(void);
6060

6161
#endif /* TWOPHASE_H */

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