/*
 * MG_SESSION.pgc - mg 모듈 서비스 MG_SESSION (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_SESSION.h"

/* 12. MG_SESSION - 세션 시퀀스 채번 (mg_seq SESSION). */
void MG_SESSION(TPSVCINFO *p)
{
    UBFH *b = (UBFH *)p->data;
    long v = mgdb_seq_bump("SESSION");
    if (v < 0) FAIL(b);
    setl(b, T_ARG2, v);
    OK(b);
}
