提交 66568194 编写于 作者: K kailixu

chore: more code

上级 e4882765
......@@ -48,6 +48,16 @@ typedef enum {
TSDB_GRANT_TABLE,
} EGrantType;
#define GRANT_ACTIVE_ON ((int8_t)0x01)
#define GRANT_CONN_ACTIVE_ON ((int8_t)0x02)
#define SET_GRANT_ACTIVE_ON(f) ((f) |= GRANT_ACTIVE_ON)
#define SET_GRANT_CONN_ACTIVE_ON(f) ((f) |= GRANT_CONN_ACTIVE_ON)
#define IS_GRANT_ACTIVE_CODES_ON(f) ((f) != 0x0)
#define IS_GRANT_ACTIVE_ON(f) (((f)&0x01) == GRANT_ACTIVE_ON)
#define IS_GRANT_CONN_ACTIVE_ON(f) (((f)&0x02) == GRANT_CONN_ACTIVE_ON)
int32_t grantCheck(EGrantType grant);
#ifndef GRANTS_CFG
......
......@@ -268,7 +268,7 @@ typedef enum ELogicConditionType {
#define TSDB_DNODE_VALUE_LEN 256
#define TSDB_ACTIVE_KEY_LEN 109
#define TSDB_CONN_ACTIVE_KEY_LEN 257
#define TSDB_CONN_ACTIVE_KEY_LEN 109
#define TSDB_DEFAULT_PKT_SIZE 65480 // same as RPC_MAX_UDP_SIZE
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册