smaCommit.c 12.6 KB
Newer Older
C
Cary Xu 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
/*
 * Copyright (c) 2019 TAOS Data, Inc. <jhtao@taosdata.com>
 *
 * This program is free software: you can use, redistribute, and/or modify
 * it under the terms of the GNU Affero General Public License, version 3
 * or later ("AGPL"), as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */

#include "sma.h"

18 19
extern SSmaMgmt smaMgmt;

20
#if 0
C
Cary Xu 已提交
21 22 23
static int32_t tdProcessRSmaSyncPreCommitImpl(SSma *pSma);
static int32_t tdProcessRSmaSyncCommitImpl(SSma *pSma);
static int32_t tdProcessRSmaSyncPostCommitImpl(SSma *pSma);
24
#endif
C
Cary Xu 已提交
25
static int32_t tdProcessRSmaAsyncPreCommitImpl(SSma *pSma);
C
Cary Xu 已提交
26
static int32_t tdProcessRSmaAsyncCommitImpl(SSma *pSma);
C
Cary Xu 已提交
27
static int32_t tdProcessRSmaAsyncPostCommitImpl(SSma *pSma);
28
static int32_t tdUpdateQTaskInfoFiles(SSma *pSma, SRSmaStat *pRSmaStat);
C
Cary Xu 已提交
29

30
#if 0
C
Cary Xu 已提交
31 32 33 34 35 36
/**
 * @brief Only applicable to Rollup SMA
 *
 * @param pSma
 * @return int32_t
 */
C
Cary Xu 已提交
37
int32_t smaSyncPreCommit(SSma *pSma) { return tdProcessRSmaSyncPreCommitImpl(pSma); }
C
Cary Xu 已提交
38 39 40 41 42 43 44

/**
 * @brief Only applicable to Rollup SMA
 *
 * @param pSma
 * @return int32_t
 */
C
Cary Xu 已提交
45
int32_t smaSyncCommit(SSma *pSma) { return tdProcessRSmaSyncCommitImpl(pSma); }
C
Cary Xu 已提交
46 47 48 49 50 51 52

/**
 * @brief Only applicable to Rollup SMA
 *
 * @param pSma
 * @return int32_t
 */
C
Cary Xu 已提交
53
int32_t smaSyncPostCommit(SSma *pSma) { return tdProcessRSmaSyncPostCommitImpl(pSma); }
54
#endif
C
Cary Xu 已提交
55

C
Cary Xu 已提交
56 57 58 59 60 61
/**
 * @brief Only applicable to Rollup SMA
 *
 * @param pSma
 * @return int32_t
 */
C
Cary Xu 已提交
62 63
int32_t smaAsyncPreCommit(SSma *pSma) { return tdProcessRSmaAsyncPreCommitImpl(pSma); }

C
Cary Xu 已提交
64 65 66 67 68 69 70 71
/**
 * @brief Only applicable to Rollup SMA
 *
 * @param pSma
 * @return int32_t
 */
int32_t smaAsyncCommit(SSma *pSma) { return tdProcessRSmaAsyncCommitImpl(pSma); }

C
Cary Xu 已提交
72 73 74 75 76 77 78
/**
 * @brief Only applicable to Rollup SMA
 *
 * @param pSma
 * @return int32_t
 */
int32_t smaAsyncPostCommit(SSma *pSma) { return tdProcessRSmaAsyncPostCommitImpl(pSma); }
C
Cary Xu 已提交
79

C
Cary Xu 已提交
80 81 82 83 84 85 86 87 88 89 90 91
/**
 * @brief set rsma trigger stat active
 *
 * @param pSma
 * @return int32_t
 */
int32_t smaBegin(SSma *pSma) {
  SSmaEnv *pSmaEnv = SMA_RSMA_ENV(pSma);
  if (!pSmaEnv) {
    return TSDB_CODE_SUCCESS;
  }

C
Cary Xu 已提交
92
  SRSmaStat *pRSmaStat = (SRSmaStat *)SMA_ENV_STAT(pSmaEnv);
C
Cary Xu 已提交
93 94 95 96 97

  int8_t rsmaTriggerStat =
      atomic_val_compare_exchange_8(RSMA_TRIGGER_STAT(pRSmaStat), TASK_TRIGGER_STAT_PAUSED, TASK_TRIGGER_STAT_ACTIVE);
  switch (rsmaTriggerStat) {
    case TASK_TRIGGER_STAT_PAUSED: {
C
Cary Xu 已提交
98
      smaDebug("vgId:%d, rsma trigger stat from paused to active", SMA_VID(pSma));
C
Cary Xu 已提交
99 100 101 102
      break;
    }
    case TASK_TRIGGER_STAT_INIT: {
      atomic_store_8(RSMA_TRIGGER_STAT(pRSmaStat), TASK_TRIGGER_STAT_ACTIVE);
C
Cary Xu 已提交
103
      smaDebug("vgId:%d, rsma trigger stat from init to active", SMA_VID(pSma));
C
Cary Xu 已提交
104 105 106 107
      break;
    }
    default: {
      atomic_store_8(RSMA_TRIGGER_STAT(pRSmaStat), TASK_TRIGGER_STAT_ACTIVE);
C
Cary Xu 已提交
108
      smaError("vgId:%d, rsma trigger stat %" PRIi8 " is unexpected", SMA_VID(pSma), rsmaTriggerStat);
C
Cary Xu 已提交
109 110 111 112 113 114
      break;
    }
  }
  return TSDB_CODE_SUCCESS;
}

115
#if 0
C
Cary Xu 已提交
116
/**
C
Cary Xu 已提交
117
 * @brief pre-commit for rollup sma(sync commit).
C
Cary Xu 已提交
118
 *  1) set trigger stat of rsma timer TASK_TRIGGER_STAT_PAUSED.
C
Cary Xu 已提交
119
 *  2) wait for all triggered fetch tasks to finish
120
 *  3) perform persist task for qTaskInfo
C
Cary Xu 已提交
121 122 123 124
 *
 * @param pSma
 * @return int32_t
 */
C
Cary Xu 已提交
125
static int32_t tdProcessRSmaSyncPreCommitImpl(SSma *pSma) {
C
Cary Xu 已提交
126 127 128 129 130
  SSmaEnv *pSmaEnv = SMA_RSMA_ENV(pSma);
  if (!pSmaEnv) {
    return TSDB_CODE_SUCCESS;
  }

C
Cary Xu 已提交
131
  SSmaStat  *pStat = SMA_ENV_STAT(pSmaEnv);
C
Cary Xu 已提交
132
  SRSmaStat *pRSmaStat = SMA_STAT_RSMA(pStat);
C
Cary Xu 已提交
133

C
Cary Xu 已提交
134
  // step 1: set rsma stat paused
C
Cary Xu 已提交
135 136
  atomic_store_8(RSMA_TRIGGER_STAT(pRSmaStat), TASK_TRIGGER_STAT_PAUSED);

C
Cary Xu 已提交
137
  // step 2: wait for all triggered fetch tasks to finish
C
Cary Xu 已提交
138 139 140
  int32_t nLoops = 0;
  while (1) {
    if (T_REF_VAL_GET(pStat) == 0) {
C
Cary Xu 已提交
141
      smaDebug("vgId:%d, rsma fetch tasks are all finished", SMA_VID(pSma));
C
Cary Xu 已提交
142 143
      break;
    } else {
C
Cary Xu 已提交
144
      smaDebug("vgId:%d, rsma fetch tasks are not all finished yet", SMA_VID(pSma));
C
Cary Xu 已提交
145 146 147 148 149 150 151
    }
    ++nLoops;
    if (nLoops > 1000) {
      sched_yield();
      nLoops = 0;
    }
  }
C
Cary Xu 已提交
152

153
  // step 3: perform persist task for qTaskInfo
C
Cary Xu 已提交
154 155
  pRSmaStat->commitAppliedVer = pSma->pVnode->state.applied;
  tdRSmaPersistExecImpl(pRSmaStat, RSMA_INFO_HASH(pRSmaStat));
156

C
Cary Xu 已提交
157
  smaDebug("vgId:%d, rsma pre commit success", SMA_VID(pSma));
C
Cary Xu 已提交
158

C
Cary Xu 已提交
159 160 161 162 163 164 165 166 167
  return TSDB_CODE_SUCCESS;
}

/**
 * @brief commit for rollup sma
 *
 * @param pSma
 * @return int32_t
 */
C
Cary Xu 已提交
168
static int32_t tdProcessRSmaSyncCommitImpl(SSma *pSma) {
C
Cary Xu 已提交
169
#if 0
C
Cary Xu 已提交
170 171 172 173
  SSmaEnv *pSmaEnv = SMA_RSMA_ENV(pSma);
  if (!pSmaEnv) {
    return TSDB_CODE_SUCCESS;
  }
C
Cary Xu 已提交
174
#endif
C
Cary Xu 已提交
175 176
  return TSDB_CODE_SUCCESS;
}
177
#endif
C
Cary Xu 已提交
178

C
Cary Xu 已提交
179 180 181 182 183 184 185
// SQTaskFile ======================================================

/**
 * @brief At most time, there is only one qtaskinfo file committed latest in aTaskFile. Sometimes, there would be
 * multiple qtaskinfo files supporting snapshot replication.
 *
 * @param pSma
186
 * @param pStat
C
Cary Xu 已提交
187 188
 * @return int32_t
 */
189 190
static int32_t tdUpdateQTaskInfoFiles(SSma *pSma, SRSmaStat *pStat) {
  SVnode  *pVnode = pSma->pVnode;
191
  SRSmaFS *pFS = RSMA_FS(pStat);
192
  int64_t  committed = pStat->commitAppliedVer;
193
  int64_t  fsMaxVer = -1;
194 195
  char     qTaskInfoFullName[TSDB_FILENAME_LEN];

196 197
  taosWLockLatch(RSMA_FS_LOCK(pStat));

198 199
  for (int32_t i = 0; i < taosArrayGetSize(pFS->aQTaskInf);) {
    SQTaskFile *pTaskF = taosArrayGet(pFS->aQTaskInf, i);
C
Cary Xu 已提交
200 201
    int32_t     oldVal = atomic_fetch_sub_32(&pTaskF->nRef, 1);
    if ((oldVal <= 1) && (pTaskF->version < committed)) {
202 203
      tdRSmaQTaskInfoGetFullName(TD_VID(pVnode), pTaskF->version, tfsGetPrimaryPath(pVnode->pTfs), qTaskInfoFullName);
      if (taosRemoveFile(qTaskInfoFullName) < 0) {
C
Cary Xu 已提交
204 205
        smaWarn("vgId:%d, cleanup qinf, committed %" PRIi64 ", failed to remove %s since %s", TD_VID(pVnode), committed,
                qTaskInfoFullName, tstrerror(TAOS_SYSTEM_ERROR(errno)));
206
      } else {
C
Cary Xu 已提交
207 208
        smaDebug("vgId:%d, cleanup qinf, committed %" PRIi64 ", success to remove %s", TD_VID(pVnode), committed,
                 qTaskInfoFullName);
209 210 211 212 213 214
      }
      taosArrayRemove(pFS->aQTaskInf, i);
      continue;
    }
    ++i;
  }
C
Cary Xu 已提交
215

216 217 218 219 220
  if (taosArrayGetSize(pFS->aQTaskInf) > 0) {
    fsMaxVer = ((SQTaskFile *)taosArrayGetLast(pFS->aQTaskInf))->version;
  }

  if (fsMaxVer < committed) {
C
Cary Xu 已提交
221 222 223
    tdRSmaQTaskInfoGetFullName(TD_VID(pVnode), committed, tfsGetPrimaryPath(pVnode->pTfs), qTaskInfoFullName);
    if (taosCheckExistFile(qTaskInfoFullName)) {
      SQTaskFile qFile = {.nRef = 1, .padding = 0, .version = committed, .size = 0};
C
Cary Xu 已提交
224
      if (!taosArrayPush(pFS->aQTaskInf, &qFile)) {
C
Cary Xu 已提交
225 226 227 228
        taosWUnLockLatch(RSMA_FS_LOCK(pStat));
        terrno = TSDB_CODE_OUT_OF_MEMORY;
        return TSDB_CODE_FAILED;
      }
229 230 231
    }
  } else {
    smaDebug("vgId:%d, update qinf, no need as committed %" PRIi64 " not larger than fsMaxVer %" PRIi64, TD_VID(pVnode),
C
Cary Xu 已提交
232
             committed, fsMaxVer);
233
  }
C
Cary Xu 已提交
234

235
  taosWUnLockLatch(RSMA_FS_LOCK(pStat));
C
Cary Xu 已提交
236 237 238
  return TSDB_CODE_SUCCESS;
}

239
#if 0
C
Cary Xu 已提交
240 241 242 243 244 245 246 247 248 249 250 251 252
/**
 * @brief post-commit for rollup sma
 *  1) clean up the outdated qtaskinfo files
 *
 * @param pSma
 * @return int32_t
 */
static int32_t tdProcessRSmaSyncPostCommitImpl(SSma *pSma) {
  SVnode *pVnode = pSma->pVnode;
  if (!VND_IS_RSMA(pVnode)) {
    return TSDB_CODE_SUCCESS;
  }

C
Cary Xu 已提交
253
  SRSmaStat *pRSmaStat = SMA_RSMA_STAT(pSma);
C
Cary Xu 已提交
254

255
  tdUpdateQTaskInfoFiles(pSma, pRSmaStat);
C
Cary Xu 已提交
256

C
Cary Xu 已提交
257 258
  return TSDB_CODE_SUCCESS;
}
259
#endif
C
Cary Xu 已提交
260 261

/**
C
Cary Xu 已提交
262
 * @brief Rsma async commit implementation(only do some necessary light weighted task)
C
Cary Xu 已提交
263 264
 *  1) set rsma stat TASK_TRIGGER_STAT_PAUSED
 *  2) Wait all running fetch task finish to fetch and put submitMsg into level 2/3 wQueue(blocking level 1 write)
C
Cary Xu 已提交
265 266 267 268
 *
 * @param pSma
 * @return int32_t
 */
C
Cary Xu 已提交
269
static int32_t tdProcessRSmaAsyncPreCommitImpl(SSma *pSma) {
C
Cary Xu 已提交
270 271
  SSmaEnv *pEnv = SMA_RSMA_ENV(pSma);
  if (!pEnv) {
C
Cary Xu 已提交
272 273 274
    return TSDB_CODE_SUCCESS;
  }

C
Cary Xu 已提交
275
  SSmaStat  *pStat = SMA_ENV_STAT(pEnv);
C
Cary Xu 已提交
276
  SRSmaStat *pRSmaStat = SMA_STAT_RSMA(pStat);
C
Cary Xu 已提交
277
  int32_t    nLoops = 0;
C
Cary Xu 已提交
278

C
Cary Xu 已提交
279
  // step 1: set rsma stat
C
Cary Xu 已提交
280
  atomic_store_8(RSMA_TRIGGER_STAT(pRSmaStat), TASK_TRIGGER_STAT_PAUSED);
281 282 283 284 285 286 287
  while (atomic_val_compare_exchange_8(RSMA_COMMIT_STAT(pRSmaStat), 0, 1) != 0) {
    ++nLoops;
    if (nLoops > 1000) {
      sched_yield();
      nLoops = 0;
    }
  }
C
Cary Xu 已提交
288 289
  pRSmaStat->commitAppliedVer = pSma->pVnode->state.applied;
  ASSERT(pRSmaStat->commitAppliedVer > 0);
C
Cary Xu 已提交
290

C
Cary Xu 已提交
291
  // step 2: wait for all triggered fetch tasks to finish
C
Cary Xu 已提交
292
  nLoops = 0;
C
Cary Xu 已提交
293 294
  while (1) {
    if (T_REF_VAL_GET(pStat) == 0) {
C
Cary Xu 已提交
295
      smaDebug("vgId:%d, rsma commit, fetch tasks are all finished", SMA_VID(pSma));
C
Cary Xu 已提交
296 297
      break;
    } else {
C
Cary Xu 已提交
298
      smaDebug("vgId:%d, rsma commit, fetch tasks are not all finished yet", SMA_VID(pSma));
C
Cary Xu 已提交
299 300 301 302 303 304 305 306
    }
    ++nLoops;
    if (nLoops > 1000) {
      sched_yield();
      nLoops = 0;
    }
  }

C
Cary Xu 已提交
307
  /**
C
Cary Xu 已提交
308
   * @brief step 3: commit should wait for all SubmitReq in buffer be consumed
C
Cary Xu 已提交
309 310 311
   *  1) This is high cost task and should not put in asyncPreCommit originally.
   *  2) But, if put in asyncCommit, would trigger taskInfo cloning frequently.
   */
C
Cary Xu 已提交
312 313 314 315 316 317 318
  nLoops = 0;
  while (atomic_load_64(&pRSmaStat->nBufItems) > 0) {
    ++nLoops;
    if (nLoops > 1000) {
      sched_yield();
      nLoops = 0;
    }
C
Cary Xu 已提交
319
  }
C
Cary Xu 已提交
320

C
Cary Xu 已提交
321 322
  smaInfo("vgId:%d, rsma commit, wait for all items to be consumed, TID:%p", SMA_VID(pSma),
          (void *)taosGetSelfPthreadId());
C
Cary Xu 已提交
323 324 325 326
  nLoops = 0;
  while (atomic_load_64(&pRSmaStat->nBufItems) > 0) {
    ++nLoops;
    if (nLoops > 1000) {
C
Cary Xu 已提交
327 328 329 330
      sched_yield();
      nLoops = 0;
    }
  }
C
Cary Xu 已提交
331 332 333 334
  smaInfo("vgId:%d, rsma commit, all items are consumed, TID:%p", SMA_VID(pSma), (void *)taosGetSelfPthreadId());
  if (tdRSmaPersistExecImpl(pRSmaStat, RSMA_INFO_HASH(pRSmaStat)) < 0) {
    return TSDB_CODE_FAILED;
  }
335
  smaInfo("vgId:%d, rsma commit, operator state committed, TID:%p", SMA_VID(pSma), (void *)taosGetSelfPthreadId());
C
Cary Xu 已提交
336

C
Cary Xu 已提交
337
#if 0  // consuming task of qTaskInfo clone 
C
Cary Xu 已提交
338
  // step 4:  swap queue/qall and iQueue/iQall
C
Cary Xu 已提交
339
  // lock
340
  taosWLockLatch(SMA_ENV_LOCK(pEnv));
C
Cary Xu 已提交
341

C
Cary Xu 已提交
342 343
  ASSERT(RSMA_INFO_HASH(pRSmaStat));

C
Cary Xu 已提交
344
  void *pIter = taosHashIterate(RSMA_INFO_HASH(pRSmaStat), NULL);
C
Cary Xu 已提交
345

C
Cary Xu 已提交
346 347 348 349 350 351 352
  while (pIter) {
    SRSmaInfo *pInfo = *(SRSmaInfo **)pIter;
    TSWAP(pInfo->iQall, pInfo->qall);
    TSWAP(pInfo->iQueue, pInfo->queue);
    TSWAP(pInfo->iTaskInfo[0], pInfo->taskInfo[0]);
    TSWAP(pInfo->iTaskInfo[1], pInfo->taskInfo[1]);
    pIter = taosHashIterate(RSMA_INFO_HASH(pRSmaStat), pIter);
C
Cary Xu 已提交
353 354
  }

C
Cary Xu 已提交
355
  // unlock
356
  taosWUnLockLatch(SMA_ENV_LOCK(pEnv));
C
Cary Xu 已提交
357
#endif
C
Cary Xu 已提交
358 359 360 361 362 363 364 365 366 367 368 369 370 371 372

  return TSDB_CODE_SUCCESS;
}

/**
 * @brief commit for rollup sma
 *
 * @param pSma
 * @return int32_t
 */
static int32_t tdProcessRSmaAsyncCommitImpl(SSma *pSma) {
  SSmaEnv *pSmaEnv = SMA_RSMA_ENV(pSma);
  if (!pSmaEnv) {
    return TSDB_CODE_SUCCESS;
  }
C
Cary Xu 已提交
373
#if 0
C
Cary Xu 已提交
374
  SRSmaStat *pRSmaStat = (SRSmaStat *)SMA_ENV_STAT(pSmaEnv);
C
Cary Xu 已提交
375

C
Cary Xu 已提交
376
  // perform persist task for qTaskInfo operator
C
Cary Xu 已提交
377 378 379
  if (tdRSmaPersistExecImpl(pRSmaStat, RSMA_INFO_HASH(pRSmaStat)) < 0) {
    return TSDB_CODE_FAILED;
  }
C
Cary Xu 已提交
380
#endif
C
Cary Xu 已提交
381

C
Cary Xu 已提交
382 383 384 385
  return TSDB_CODE_SUCCESS;
}

/**
C
Cary Xu 已提交
386
 * @brief Migrate rsmaInfo from iRsmaInfo to rsmaInfo if rsma infoHash not empty.
C
Cary Xu 已提交
387 388 389
 *
 * @param pSma
 * @return int32_t
C
Cary Xu 已提交
390 391
 */
static int32_t tdProcessRSmaAsyncPostCommitImpl(SSma *pSma) {
C
Cary Xu 已提交
392 393
  SSmaEnv *pEnv = SMA_RSMA_ENV(pSma);
  if (!pEnv) {
C
Cary Xu 已提交
394 395 396
    return TSDB_CODE_SUCCESS;
  }

397
  SRSmaStat *pRSmaStat = (SRSmaStat *)SMA_ENV_STAT(pEnv);
C
Cary Xu 已提交
398

C
Cary Xu 已提交
399
  // step 1: merge qTaskInfo and iQTaskInfo
C
Cary Xu 已提交
400
  // lock
401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419
  if (1 == atomic_val_compare_exchange_8(&pRSmaStat->delFlag, 1, 0)) {
    taosWLockLatch(SMA_ENV_LOCK(pEnv));

    void *pIter = NULL;
    while ((pIter = taosHashIterate(RSMA_INFO_HASH(pRSmaStat), pIter))) {
      tb_uid_t  *pSuid = (tb_uid_t *)taosHashGetKey(pIter, NULL);
      SRSmaInfo *pRSmaInfo = *(SRSmaInfo **)pIter;
      if (RSMA_INFO_IS_DEL(pRSmaInfo)) {
        int32_t refVal = T_REF_VAL_GET(pRSmaInfo);
        if (refVal == 0) {
          taosHashRemove(RSMA_INFO_HASH(pRSmaStat), pSuid, sizeof(*pSuid));
        } else {
          smaDebug(
              "vgId:%d, rsma async post commit, not free rsma info since ref is %d although already deleted for "
              "table:%" PRIi64,
              SMA_VID(pSma), refVal, *pSuid);
        }

        continue;
C
Cary Xu 已提交
420
      }
C
Cary Xu 已提交
421
#if 0
C
Cary Xu 已提交
422 423 424
    if (pRSmaInfo->taskInfo[0]) {
      if (pRSmaInfo->iTaskInfo[0]) {
        SRSmaInfo *pRSmaInfo = *(SRSmaInfo **)pRSmaInfo->iTaskInfo[0];
C
Cary Xu 已提交
425
        tdFreeRSmaInfo(pSma, pRSmaInfo, false);
C
Cary Xu 已提交
426
        pRSmaInfo->iTaskInfo[0] = NULL;
C
Cary Xu 已提交
427 428
      }
    } else {
C
Cary Xu 已提交
429
      TSWAP(pRSmaInfo->taskInfo[0], pRSmaInfo->iTaskInfo[0]);
C
Cary Xu 已提交
430
    }
C
Cary Xu 已提交
431

C
Cary Xu 已提交
432 433
    taosHashPut(RSMA_INFO_HASH(pRSmaStat), pSuid, sizeof(tb_uid_t), pIter, sizeof(pIter));
    smaDebug("vgId:%d, rsma async post commit, migrated from iRsmaInfoHash for table:%" PRIi64, SMA_VID(pSma), *pSuid);
C
Cary Xu 已提交
434
#endif
435
    }
C
Cary Xu 已提交
436

437 438 439
    // unlock
    taosWUnLockLatch(SMA_ENV_LOCK(pEnv));
  }
C
Cary Xu 已提交
440

441
  tdUpdateQTaskInfoFiles(pSma, pRSmaStat);
C
Cary Xu 已提交
442

C
Cary Xu 已提交
443 444
  atomic_store_8(RSMA_COMMIT_STAT(pRSmaStat), 0);

C
Cary Xu 已提交
445 446
  return TSDB_CODE_SUCCESS;
}