@@ -44,7 +44,7 @@ static Snapshot DtmGetSnapshot(Snapshot snapshot);
4444static void DtmCopySnapshot (Snapshot dst , Snapshot src );
4545static XidStatus DtmGetTransactionStatus (TransactionId xid , XLogRecPtr * lsn );
4646static void DtmSetTransactionStatus (TransactionId xid , int nsubxids , TransactionId * subxids , XidStatus status , XLogRecPtr lsn );
47- static XidStatus DtmGetGloabalTransStatus (TransactionId xid );
47+ static XidStatus DtmGetGlobalTransStatus (TransactionId xid );
4848static void DtmUpdateRecentXmin (void );
4949// static bool IsInDtmSnapshot(TransactionId xid);
5050static bool DtmTransactionIsInProgress (TransactionId xid );
@@ -188,9 +188,9 @@ static bool DtmTransactionIsInProgress(TransactionId xid)
188188 return TransactionIdIsRunning (xid );// || IsInDtmSnapshot(xid);
189189}
190190
191- static XidStatus DtmGetGloabalTransStatus (TransactionId xid )
191+ static XidStatus DtmGetGlobalTransStatus (TransactionId xid )
192192{
193- XTM_TRACE ("XTM: DtmGetGloabalTransStatus \n" );
193+ XTM_TRACE ("XTM: DtmGetGlobalTransStatus \n" );
194194 while (true) {
195195 XidStatus status ;
196196 DtmEnsureConnection ();
@@ -214,7 +214,7 @@ static XidStatus DtmGetTransactionStatus(TransactionId xid, XLogRecPtr *lsn)
214214 XTM_TRACE ("XTM: DtmGetTransactionStatus \n" );
215215#if 0
216216 if (status == TRANSACTION_STATUS_IN_PROGRESS ) {
217- status = DtmGetGloabalTransStatus (xid );
217+ status = DtmGetGlobalTransStatus (xid );
218218 if (status == TRANSACTION_STATUS_UNKNOWN ) {
219219 status = TRANSACTION_STATUS_IN_PROGRESS ;
220220 }
@@ -238,13 +238,13 @@ static void DtmSetTransactionStatus(TransactionId xid, int nsubxids, Transaction
238238 if (!DtmGlobalSetTransStatus (DtmConn , DtmNodeId , xid , status ) && status != TRANSACTION_STATUS_ABORTED ) {
239239 elog (ERROR , "DTMD failed to set transaction status" );
240240 }
241- status = DtmGetGloabalTransStatus (xid );
241+ status = DtmGetGlobalTransStatus (xid );
242242 Assert (status == TRANSACTION_STATUS_ABORTED || status == TRANSACTION_STATUS_COMMITTED );
243243 } else {
244244 elog (WARNING , "Set transaction %u status in local CLOG" , xid );
245245 }
246246 } else {
247- XidStatus gs = DtmGetGloabalTransStatus (xid );
247+ XidStatus gs = DtmGetGlobalTransStatus (xid );
248248 if (gs != TRANSACTION_STATUS_UNKNOWN ) {
249249 status = gs ;
250250 }
0 commit comments