summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorTomas Vondra2017-11-04 15:49:11 +0000
committerTomas Vondra2017-11-04 15:50:57 +0000
commita39b06b0c666d06b8789f65b2480f8e9e43fa30c (patch)
treed094d98d290c507ad3e45de0c857555f448033df /src/include
parenteef3e0b0511bcd543977d2c3e0994b3d302f3fd0 (diff)
Improve comments in GTM code, minor naming tweaks
This patch improves comments in gtm_txn.c and gtm_snap.c in three basic ways: 1) Adds global comments explaining the basics of transaction and snapshot management APIs - underlying concepts, main methods. 2) Improves (and adds) function-level comments, explaining the meaning of parameters, return values, and other details. 3) Tweaks the naming of several API functions, to make them more consistent with the rest of the module.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gtm/gtm_txn.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/include/gtm/gtm_txn.h b/src/include/gtm/gtm_txn.h
index c8b1fdc855..ee3d0a1f0b 100644
--- a/src/include/gtm/gtm_txn.h
+++ b/src/include/gtm/gtm_txn.h
@@ -32,9 +32,9 @@ struct GTM_RestoreContext;
/* gtm/main/gtm_txn.c */
extern GlobalTransactionId GTM_GetGlobalTransactionId(GTM_TransactionHandle handle);
-extern GlobalTransactionId ReadNewGlobalTransactionId(void);
-extern void SetNextGlobalTransactionId(GlobalTransactionId gxid);
-extern void SetControlXid(GlobalTransactionId gxid);
+extern GlobalTransactionId GTM_ReadNewGlobalTransactionId(void);
+extern void GTM_SetNextGlobalTransactionId(GlobalTransactionId gxid);
+extern void GTM_SetControlXid(GlobalTransactionId gxid);
extern void GTM_SetShuttingDown(void);
/* for restoration point backup (gtm/main/gtm_backup.c) */
@@ -153,7 +153,7 @@ GTM_TransactionHandle GTM_GXIDToHandle(GlobalTransactionId gxid);
/* Transaction Control */
void GTM_InitTxnManager(void);
void GTM_RemoveAllTransInfos(uint32 client_id, int backend_id);
-uint32 GTMGetLastClientIdentifier(void);
+uint32 GTM_GetLastClientIdentifier(void);
/* processing of messages in gtm_txn.c */
void ProcessBeginTransactionCommand(Port *myport, StringInfo message);