-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
enh: exclude sys tables in log/audit db #23135
Conversation
@@ -98,6 +98,9 @@ typedef struct SQueryNode SQueryNode; | |||
#define VND_INFO_FNAME "vnode.json" | |||
#define VND_INFO_FNAME_TMP "vnode_tmp.json" | |||
|
|||
#define TK_LOG_STB_NUM 19 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里的个数是tkLogStb的表个数吧,直接定义成sizeof(tkLogStb)/sizeof(tkLogStb[0])更好维护一点吧
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好的。
int64_t ctbNum; | ||
metaGetStbStats(pMeta->pVnode, pReq->suid, &ctbNum, NULL); | ||
pMeta->pVnode->config.vndStats.numOfTimeSeries += (ctbNum * deltaCol); | ||
metaTimeSeriesNotifyCheck(pMeta); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
metaTimeSeriesNotifyCheck 为什么是在alterStable检查而不是dropStable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1) dropStable 时已经有秒级的 statusReq 的同步,所以没有进行 check。2) alter stable 时,实际上只有 add column 时 metaTimeSeriesNotifyCheck 即可,drop column 有秒级的 statusReq 也够用了,只是没做详细的区分。
No description provided.