Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 9fb3042

Browse files
committed
fix logging in tx poll request handler
1 parent d80d862 commit 9fb3042

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

arbiter.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -971,17 +971,18 @@ static void MtmReceiver(Datum arg)
971971
XidStatus status;
972972

973973
MtmUnlock();
974+
MTM_LOG1("Request for transaction %s from node %d", msg->gid, node);
974975
status = GetLoggedPreparedXactState(msg->gid);
975976
MtmLock(LW_EXCLUSIVE);
976977

977978
if (status == TRANSACTION_STATUS_UNKNOWN)
978979
{
979-
MTM_ELOG(WARNING, "Request for unexisted transaction %s from node %d", msg->gid, node);
980+
MTM_ELOG(WARNING, "Transaction %s from node %d not found", msg->gid, node);
980981
msg->status = TRANSACTION_STATUS_ABORTED;
981982
}
982983
else
983984
{
984-
MTM_LOG1("Request for existed transaction %s from node %d -> %d", msg->gid, node, status);
985+
MTM_LOG1("Transaction %s from node %d has status %d", msg->gid, node, status);
985986
msg->status = status;
986987
}
987988
}

0 commit comments

Comments
 (0)