提交 22b904b7 编写于 作者: B Benguang Zhao

feat: not allowed to create a topic when WAL_RETENTION_PERIOD is zero

上级 235ef431
......@@ -605,6 +605,12 @@ static int32_t mndProcessCreateTopicReq(SRpcMsg *pReq) {
goto _OVER;
}
if (pDb->cfg.walRetentionPeriod == 0) {
terrno = TSDB_CODE_MND_INVALID_DB_OPTION;
mError("db:%s, not allowed to create topic when WAL_RETENTION_PERIOD is zero", pDb->name);
goto _OVER;
}
code = mndCreateTopic(pMnode, pReq, &createTopicReq, pDb, pReq->info.conn.user);
if (code == 0) {
code = TSDB_CODE_ACTION_IN_PROGRESS;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册