fix: do not process query and fetch msg until vnode restore finished

This commit is contained in:
Shengliang Guan 2022-09-29 14:18:20 +08:00
parent 4223be379a
commit 7e85a15c31
1 changed files with 1 additions and 1 deletions

View File

@ -805,7 +805,7 @@ bool vnodeIsReadyForRead(SVnode *pVnode) {
return true;
}
if (pVnode->restored) {
if (!pVnode->restored) {
vDebug("vgId:%d, vnode restore not finished", pVnode->config.vgId);
terrno = TSDB_CODE_APP_NOT_READY;
return false;