/*
 * RC_ROLLBACK.pgc - rc 모듈 서비스 RC_ROLLBACK (one service = one file).
 * Moved verbatim from the former inline rc_svr.pgc; runs on the caller's XA
 * branch (no EXEC SQL CONNECT). Advertised by rc_svr at tpsvrinit.
 */
#include "RC_ROLLBACK.h"

/* 28. RC_ROLLBACK - 대사 롤백 (-> ROLLBACK 상태). */
void RC_ROLLBACK(TPSVCINFO *p)
{
    UBFH *b = (UBFH *)p->data;
    long pid = getl(b, T_PURCHASE_ID);
    if (rcdb_update_match_status(pid, "MATCHED", "ROLLBACK") < 0) FAIL(b);
    Bchg(b, T_STATUS, 0, "X", 0L);
    OK(b);
}

/* vim: set ts=4 sw=4 et smartindent: */
