option index is out of range

This commit is contained in:
Jeff Tao 2020-04-10 08:59:17 +08:00
parent 358dad34ba
commit be2f915fb4
1 changed files with 1 additions and 1 deletions

View File

@ -344,7 +344,7 @@ static int32_t vnodeSaveCfg(SMDCreateVnodeMsg *pVnodeCfg) {
// TODO: this is a simple implement
static int32_t vnodeReadCfg(SVnodeObj *pVnode) {
char option[3][16] = {0};
char option[4][16] = {0};
char cfgFile[TSDB_FILENAME_LEN * 2] = {0};
sprintf(cfgFile, "%s/vnode%d/config", tsVnodeDir, pVnode->vgId);