/*
 * MG_ACK.pgc - mg 모듈 서비스 MG_ACK (one service = one file).
 * Split out of the former inline mg_svr.pgc; runs on the caller's XA
 * branch (no EXEC SQL CONNECT). Advertised by mg_svr at tpsvrinit.
 */
#include "MG_ACK.h"

/* 13. MG_ACK - 응답 확인 (status=A, rc=00). */
void MG_ACK(TPSVCINFO *p)
{
    UBFH *b = (UBFH *)p->data;
    long msg_id = getl(b, T_ID1);
    if (mgdb_update_msg_rc(msg_id, "00", "A") < 0) FAIL(b);
    sets_(b, T_STATUS, "A");
    OK(b);
}
