From a6e0fbd76af25c918c4afe55ef6eba1e8687be78 Mon Sep 17 00:00:00 2001 From: kailixu Date: Mon, 24 Jun 2024 16:21:10 +0800 Subject: [PATCH] fix: expire time for show cluster --- include/common/tgrant.h | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/include/common/tgrant.h b/include/common/tgrant.h index 42adabd6f7..e2f259b4f3 100644 --- a/include/common/tgrant.h +++ b/include/common/tgrant.h @@ -28,13 +28,12 @@ extern "C" { #define GRANTS_COL_MAX_LEN 196 #endif -#define GRANT_HEART_BEAT_MIN 2 -#define GRANT_EXPIRE_VALUE (31556995201) -#define GRANT_EXPIRE_UNLIMITED(v) ((v) == GRANT_EXPIRE_VALUE) -#define GRANT_ACTIVE_CODE "activeCode" -#define GRANT_FLAG_ALL (0x01) -#define GRANT_FLAG_AUDIT (0x02) -#define GRANT_FLAG_VIEW (0x04) +#define GRANT_HEART_BEAT_MIN 2 +#define GRANT_EXPIRE_VALUE (31556995201) +#define GRANT_ACTIVE_CODE "activeCode" +#define GRANT_FLAG_ALL (0x01) +#define GRANT_FLAG_AUDIT (0x02) +#define GRANT_FLAG_VIEW (0x04) typedef enum { TSDB_GRANT_ALL,