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

/* 21. CM_CACHE_INV - 캐시 무효화 (순수 처리: 버전 증가 표시). */
void CM_CACHE_INV(TPSVCINFO *p)
{
    UBFH *b = (UBFH *)p->data;
    char grp[32];
    gets_(b, T_STR1, grp, sizeof(grp)); if (grp[0] == 0) strcpy(grp, "ALL");
    setl(b, T_RC, 0);
    sets_(b, T_MSG, "캐시 무효화 완료");
    userlog("CM_CACHE_INV grp=%s", grp);
    OK(b);
}
