Skip to content
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

Merged
merged 14 commits into from Oct 7, 2023
Merged

enh: exclude sys tables in log/audit db #23135

merged 14 commits into from Oct 7, 2023

Conversation

kailixu
Copy link
Contributor

@kailixu kailixu commented Oct 5, 2023

No description provided.

@@ -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
Copy link
Contributor

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])更好维护一点吧

Copy link
Contributor Author

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);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

metaTimeSeriesNotifyCheck 为什么是在alterStable检查而不是dropStable?

Copy link
Contributor Author

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 也够用了,只是没做详细的区分。

@dapan1121 dapan1121 merged commit 9f1b2c9 into 3.0 Oct 7, 2023
1 check passed
@gccgdb1234 gccgdb1234 deleted the enh/TD-26532-3.0 branch December 11, 2023 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants