• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

taosdata / TDengine / #4720

08 Sep 2025 08:43AM UTC coverage: 58.139% (-0.6%) from 58.762%
#4720

push

travis-ci

web-flow
Merge pull request #32881 from taosdata/enh/add-new-windows-ci

fix(ci): update workflow reference to use new Windows CI YAML

133181 of 292179 branches covered (45.58%)

Branch coverage included in aggregate %.

201691 of 283811 relevant lines covered (71.07%)

5442780.71 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

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

16
#define _DEFAULT_SOURCE
17
#include "tdatablock.h"
18
#include "tglobal.h"
19
#include "tjson.h"
20
#include "tmisce.h"
21
#include "tcompare.h"
22

23
int32_t taosGetIpv4FromEp(const char* ep, SEp* pEp) {
35,920✔
24
  pEp->port = 0;
35,920✔
25
  memset(pEp->fqdn, 0, TSDB_FQDN_LEN);
35,920✔
26
  tstrncpy(pEp->fqdn, ep, TSDB_FQDN_LEN);
35,920✔
27

28
  char* temp = strrchr(pEp->fqdn, ':');
35,920✔
29
  if (temp) {
35,920✔
30
    *temp = 0;
33,685✔
31
    pEp->port = taosStr2UInt16(temp + 1, NULL, 10);
33,685✔
32
    if (pEp->port < 0) {
33
      return TSDB_CODE_INVALID_PARA;
34
    }
35
  }
36

37
  if (pEp->port == 0) {
35,921✔
38
    pEp->port = tsServerPort;
2,235✔
39
  }
40

41
  if (pEp->port <= 0) {
35,921!
42
    return TSDB_CODE_INVALID_PARA;
×
43
  }
44
  return 0;
35,921✔
45
}
46

47
static int8_t isValidPort(const char* str) {
12✔
48
  if (!str || !*str) return 0;
12!
49
  for (const char* p = str; *p; ++p) {
51✔
50
    if (*p < '0' || *p > '9') {
39!
51
      return 0;
×
52
    }
53
  }
54
  return 1;
12✔
55
}
56

57
static int32_t taosGetDualIpFromEp(const char* ep, SEp* pEp) {
24✔
58
  memset(pEp->fqdn, 0, TSDB_FQDN_LEN);
24✔
59
  pEp->port = 0;
24✔
60
  char buf[TSDB_FQDN_LEN] = {0};
24✔
61

62
  if (ep[0] == '[') {
24✔
63
    // [IPv6]:port format
64
    const char* end = strchr(ep, ']');
6✔
65
    if (!end) return TSDB_CODE_INVALID_PARA;
6!
66

67
    int ipLen = end - ep - 1;
6✔
68
    if (ipLen >= TSDB_FQDN_LEN) ipLen = TSDB_FQDN_LEN - 1;
6!
69

70
    strncpy(pEp->fqdn, ep + 1, ipLen);
6✔
71
    pEp->fqdn[ipLen] = '\0';
6✔
72

73
    if (*(end + 1) == ':' && *(end + 2)) {
6!
74
      pEp->port = taosStr2UInt16(end + 2, NULL, 10);
3✔
75
    }
76
  } else {
77
    // Compatible with ::1:6030, ::1, IPv4:port, hostname:port, etc.
78
    strncpy(buf, ep, TSDB_FQDN_LEN - 1);
18✔
79
    buf[TSDB_FQDN_LEN - 1] = 0;
18✔
80

81
    char* lastColon = strrchr(buf, ':');
18✔
82
    char* firstColon = strchr(buf, ':');
18✔
83

84
    if (lastColon && firstColon != lastColon) {
27✔
85
      // Multiple colons, possibly IPv6:port or pure IPv6
86
      char* portStr = lastColon + 1;
9✔
87
      if (isValidPort(portStr) && lastColon != buf && (*(lastColon - 1) != ':')) {
9!
88
        *lastColon = 0;
6✔
89
        tstrncpy(pEp->fqdn, buf, TSDB_FQDN_LEN);
6✔
90
        pEp->port = taosStr2UInt16(portStr, NULL, 10);
6✔
91
      } else {
92
        tstrncpy(pEp->fqdn, ep, TSDB_FQDN_LEN);
3✔
93
      }
94
    } else if (lastColon) {
9✔
95
      // Only one colon, IPv4:port or hostname:port
96
      char* portStr = lastColon + 1;
3✔
97
      if (isValidPort(portStr) && lastColon != buf) {
3!
98
        *lastColon = 0;
3✔
99
        tstrncpy(pEp->fqdn, buf, TSDB_FQDN_LEN);
3✔
100
        pEp->port = taosStr2UInt16(portStr, NULL, 10);
3✔
101
      } else {
102
        tstrncpy(pEp->fqdn, ep, TSDB_FQDN_LEN);
×
103
      }
104
    } else {
105
      // No colon, pure hostname or IPv6 without port
106
      tstrncpy(pEp->fqdn, ep, TSDB_FQDN_LEN);
6✔
107
    }
108
  }
109

110
  if (pEp->port == 0) {
24✔
111
    pEp->port = tsServerPort;
12✔
112
  }
113

114
  if (pEp->port <= 0) {
24!
115
    return TSDB_CODE_INVALID_PARA;
×
116
  }
117

118
  return 0;
24✔
119
}
120
int32_t taosGetFqdnPortFromEp(const char* ep, SEp* pEp) {
35,944✔
121
  if (tsEnableIpv6) {
35,944✔
122
    return taosGetDualIpFromEp(ep, pEp);
24✔
123
  } else {
124
    return taosGetIpv4FromEp(ep, pEp);
35,920✔
125
  }
126
}
127

128
int32_t addEpIntoEpSet(SEpSet* pEpSet, const char* fqdn, uint16_t port) {
129,243✔
129
  if (pEpSet == NULL || fqdn == NULL || strlen(fqdn) == 0) {
129,243!
130
    return TSDB_CODE_INVALID_PARA;
×
131
  }
132

133
  int32_t index = pEpSet->numOfEps;
129,243✔
134
  if (index >= sizeof(pEpSet->eps) / sizeof(pEpSet->eps[0])) {
129,243!
135
    return TSDB_CODE_OUT_OF_RANGE;
×
136
  }
137
  tstrncpy(pEpSet->eps[index].fqdn, fqdn, tListLen(pEpSet->eps[index].fqdn));
129,243✔
138
  pEpSet->eps[index].port = port;
129,243✔
139
  pEpSet->numOfEps += 1;
129,243✔
140
  return 0;
129,243✔
141
}
142

143
bool isEpsetEqual(const SEpSet* s1, const SEpSet* s2) {
2,462✔
144
  if (s1->numOfEps != s2->numOfEps || s1->inUse != s2->inUse) {
2,462!
145
    return false;
1,870✔
146
  }
147

148
  for (int32_t i = 0; i < s1->numOfEps; i++) {
1,751✔
149
    if (s1->eps[i].port != s2->eps[i].port || strncmp(s1->eps[i].fqdn, s2->eps[i].fqdn, TSDB_FQDN_LEN) != 0)
1,166!
150
      return false;
7✔
151
  }
152
  return true;
585✔
153
}
154

155
void epsetAssign(SEpSet* pDst, const SEpSet* pSrc) {
2,550✔
156
  if (pSrc == NULL || pDst == NULL) {
2,550!
157
    return;
×
158
  }
159

160
  pDst->inUse = pSrc->inUse;
2,550✔
161
  pDst->numOfEps = pSrc->numOfEps;
2,550✔
162
  for (int32_t i = 0; i < pSrc->numOfEps; ++i) {
9,654✔
163
    pDst->eps[i].port = pSrc->eps[i].port;
7,104✔
164
    tstrncpy(pDst->eps[i].fqdn, pSrc->eps[i].fqdn, tListLen(pSrc->eps[i].fqdn));
7,104✔
165
  }
166
}
167

168
void epAssign(SEp* pDst, SEp* pSrc) {
134,540✔
169
  if (pSrc == NULL || pDst == NULL) {
134,540!
170
    return;
×
171
  }
172
  memset(pDst->fqdn, 0, tListLen(pSrc->fqdn));
134,540✔
173
  tstrncpy(pDst->fqdn, pSrc->fqdn, tListLen(pSrc->fqdn));
134,540✔
174
  pDst->port = pSrc->port;
134,540✔
175
}
176

177
void epsetSort(SEpSet* pDst) {
183,459✔
178
  if (pDst->numOfEps <= 1) {
183,459✔
179
    return;
128,944✔
180
  }
181
  int validIdx = false;
54,515✔
182
  SEp ep = {0};
54,515✔
183
  if (pDst->inUse >= 0 && pDst->inUse < pDst->numOfEps) {
54,515!
184
    validIdx = true;
54,526✔
185
    epAssign(&ep, &pDst->eps[pDst->inUse]);
54,526✔
186
  }
187

188
  for (int i = 0; i < pDst->numOfEps - 1; i++) {
157,266✔
189
    for (int j = 0; j < pDst->numOfEps - 1 - i; j++) {
258,651✔
190
      SEp* f = &pDst->eps[j];
155,902✔
191
      SEp* s = &pDst->eps[j + 1];
155,902✔
192
      int  cmp = strncmp(f->fqdn, s->fqdn, sizeof(f->fqdn));
155,902✔
193
      if (cmp > 0 || (cmp == 0 && f->port > s->port)) {
155,902!
194
        SEp ep1 = {0};
26,651✔
195
        epAssign(&ep1, f);
26,651✔
196
        epAssign(f, s);
26,673✔
197
        epAssign(s, &ep1);
26,673✔
198
      }
199
    }
200
  }
201
  if (validIdx == true)
54,539✔
202
    for (int i = 0; i < pDst->numOfEps; i++) {
105,710✔
203
      int cmp = strncmp(ep.fqdn, pDst->eps[i].fqdn, sizeof(ep.fqdn));
105,709✔
204
      if (cmp == 0 && ep.port == pDst->eps[i].port) {
105,709✔
205
        pDst->inUse = i;
54,533✔
206
        break;
54,533✔
207
      }
208
    }
209
}
210

211
void updateEpSet_s(SCorEpSet* pEpSet, SEpSet* pNewEpSet) {
1,877✔
212
  taosCorBeginWrite(&pEpSet->version);
1,877!
213
  pEpSet->epSet = *pNewEpSet;
1,877✔
214
  taosCorEndWrite(&pEpSet->version);
1,877✔
215
}
1,877✔
216

217
SEpSet getEpSet_s(SCorEpSet* pEpSet) {
459,387✔
218
  SEpSet ep = {0};
459,387✔
219
  taosCorBeginRead(&pEpSet->version);
459,368!
220
  ep = pEpSet->epSet;
459,649✔
221
  taosCorEndRead(&pEpSet->version);
459,649!
222

223
  return ep;
459,645✔
224
}
225

226
int32_t epsetToStr(const SEpSet* pEpSet, char* pBuf, int32_t cap) {
209,489✔
227
  int32_t ret = 0;
209,489✔
228
  int32_t nwrite = 0;
209,489✔
229

230
  nwrite = snprintf(pBuf + nwrite, cap, "epset:{");
209,489✔
231
  if (nwrite <= 0 || nwrite >= cap) {
209,489!
232
    return TSDB_CODE_OUT_OF_BUFFER;
×
233
  }
234
  cap -= nwrite;
209,509✔
235

236
  for (int _i = 0; (_i < pEpSet->numOfEps) && (cap > 0); _i++) {
485,866!
237
    if (_i == pEpSet->numOfEps - 1) {
276,353✔
238
      ret = snprintf(pBuf + nwrite, cap, "%d. %s:%d", _i, pEpSet->eps[_i].fqdn, pEpSet->eps[_i].port);
209,501✔
239
    } else {
240
      ret = snprintf(pBuf + nwrite, cap, "%d. %s:%d, ", _i, pEpSet->eps[_i].fqdn, pEpSet->eps[_i].port);
66,852✔
241
    }
242

243
    if (ret <= 0 || ret >= cap) {
276,353!
244
      return TSDB_CODE_OUT_OF_BUFFER;
×
245
    }
246

247
    nwrite += ret;
276,357✔
248
    cap -= ret;
276,357✔
249
  }
250

251
  if (cap <= 0) {
209,513!
252
    return TSDB_CODE_OUT_OF_BUFFER;
×
253
  }
254

255
  ret = snprintf(pBuf + nwrite, cap, "}, inUse:%d", pEpSet->inUse);
209,513✔
256
  if (ret <= 0 || ret >= cap) {
209,513!
257
    return TSDB_CODE_OUT_OF_BUFFER;
×
258
  } else {
259
    return TSDB_CODE_SUCCESS;
209,523✔
260
  }
261
}
262

263
int32_t taosGenCrashJsonMsg(int signum, char** pMsg, int64_t clusterId, int64_t startTime) {
×
264
  int32_t code = 0;
×
265
  SJson*  pJson = tjsonCreateObject();
×
266
  if (pJson == NULL) return terrno;
×
267

268
  char tmp[4096] = {0};
×
269

270
  TAOS_CHECK_GOTO(tjsonAddDoubleToObject(pJson, "reportVersion", 1), NULL, _exit);
×
271

272
  TAOS_CHECK_GOTO(tjsonAddIntegerToObject(pJson, "clusterId", clusterId), NULL, _exit);
×
273
  TAOS_CHECK_GOTO(tjsonAddIntegerToObject(pJson, "startTime", startTime), NULL, _exit);
×
274

275
  // Do NOT invoke the taosGetFqdn here.
276
  // this function may be invoked when memory exception occurs,so we should assume that it is running in a memory locked
277
  // environment. The lock operation by taosGetFqdn may cause this program deadlock.
278
  TAOS_CHECK_GOTO(tjsonAddStringToObject(pJson, "fqdn", tsLocalFqdn), NULL, _exit);
×
279

280
  TAOS_CHECK_GOTO(tjsonAddIntegerToObject(pJson, "pid", taosGetPId()), NULL, _exit);
×
281

282
  code = taosGetAppName(tmp, NULL);
×
283
  if (code != 0) {
×
284
    TAOS_CHECK_GOTO(code, NULL, _exit);
×
285
  }
286
  TAOS_CHECK_GOTO(tjsonAddStringToObject(pJson, "appName", tmp), NULL, _exit);
×
287

288
  if (taosGetOsReleaseName(tmp, NULL, NULL, sizeof(tmp)) == 0) {
×
289
    TAOS_CHECK_GOTO(tjsonAddStringToObject(pJson, "os", tmp), NULL, _exit);
×
290
  } else {
291
    // do nothing
292
  }
293

294
  float numOfCores = 0;
×
295
  if (taosGetCpuInfo(tmp, sizeof(tmp), &numOfCores) == 0) {
×
296
    TAOS_CHECK_GOTO(tjsonAddStringToObject(pJson, "cpuModel", tmp), NULL, _exit);
×
297
    TAOS_CHECK_GOTO(tjsonAddDoubleToObject(pJson, "numOfCpu", numOfCores), NULL, _exit);
×
298
  } else {
299
    TAOS_CHECK_GOTO(tjsonAddDoubleToObject(pJson, "numOfCpu", tsNumOfCores), NULL, _exit);
×
300
  }
301

302
  int32_t nBytes = snprintf(tmp, sizeof(tmp), "%" PRId64 " kB", tsTotalMemoryKB);
×
303
  if (nBytes <= 9 || nBytes >= sizeof(tmp)) {
×
304
    TAOS_CHECK_GOTO(TSDB_CODE_OUT_OF_RANGE, NULL, _exit);
×
305
  }
306
  TAOS_CHECK_GOTO(tjsonAddStringToObject(pJson, "memory", tmp), NULL, _exit);
×
307

308
  TAOS_CHECK_GOTO(tjsonAddStringToObject(pJson, "version", td_version), NULL, _exit);
×
309
  TAOS_CHECK_GOTO(tjsonAddStringToObject(pJson, "buildInfo", td_buildinfo), NULL, _exit);
×
310
  TAOS_CHECK_GOTO(tjsonAddStringToObject(pJson, "gitInfo", td_gitinfo), NULL, _exit);
×
311

312
  TAOS_CHECK_GOTO(tjsonAddIntegerToObject(pJson, "crashSig", signum), NULL, _exit);
×
313
  TAOS_CHECK_GOTO(tjsonAddIntegerToObject(pJson, "crashTs", taosGetTimestampUs()), NULL, _exit);
×
314

315
#if 0
316
#ifdef _TD_DARWIN_64
317
  taosLogTraceToBuf(tmp, sizeof(tmp), 4);
318
#elif !defined(WINDOWS)
319
  taosLogTraceToBuf(tmp, sizeof(tmp), 3);
320
#else
321
  taosLogTraceToBuf(tmp, sizeof(tmp), 8);
322
#endif
323

324
  TAOS_CHECK_GOTO(tjsonAddStringToObject(pJson, "stackInfo", tmp), NULL, _exit);
325
#endif
326
  char* pCont = tjsonToString(pJson);
×
327
  if (pCont == NULL) {
×
328
    code = terrno;
×
329
    TAOS_CHECK_GOTO(code, NULL, _exit);
×
330
    goto _exit;
×
331
  }
332

333
  tjsonDelete(pJson);
×
334
  *pMsg = pCont;
×
335
  pJson = NULL;
×
336
_exit:
×
337
  tjsonDelete(pJson);
×
338
  TAOS_RETURN(code);
×
339
}
340

341
int32_t dumpConfToDataBlock(SSDataBlock* pBlock, int32_t startCol, char* likePattern) {
296✔
342
  int32_t  code = 0;
296✔
343
  SConfig* pConf = taosGetCfg();
296✔
344
  if (pConf == NULL) {
296!
345
    return TSDB_CODE_INVALID_CFG;
×
346
  }
347

348
  int32_t      numOfRows = 0;
296✔
349
  int32_t      col = startCol;
296✔
350
  SConfigItem* pItem = NULL;
296✔
351
  SConfigIter* pIter = NULL;
296✔
352

353
  int8_t locked = 0;
296✔
354

355
  size_t       exSize = 0;
296✔
356
  size_t       index = 0;
296✔
357
  SConfigItem* pDataDirItem = cfgGetItem(pConf, "dataDir");
296✔
358
  if (pDataDirItem) {
296✔
359
    exSize = TMAX(taosArrayGetSize(pDataDirItem->array), 1) - 1;
278✔
360
  }
361

362
  TAOS_CHECK_GOTO(blockDataEnsureCapacity(pBlock, cfgGetSize(pConf) + exSize), NULL, _exit);
296!
363

364
  TAOS_CHECK_GOTO(cfgCreateIter(pConf, &pIter), NULL, _exit);
296!
365

366
  cfgLock(pConf);
296✔
367
  locked = 1;
296✔
368

369
  while ((pItem = cfgNextIter(pIter)) != NULL) {
66,098✔
370
  _start:
65,802✔
371
    col = startCol;
65,802✔
372

373
    // GRANT_CFG_SKIP;
374
    char name[TSDB_CONFIG_OPTION_LEN + VARSTR_HEADER_SIZE] = {0};
65,802✔
375
    if (likePattern && rawStrPatternMatch(pItem->name, likePattern) != TSDB_PATTERN_MATCH) {
65,802!
376
      continue;
×
377
    }
378
    STR_WITH_MAXSIZE_TO_VARSTR(name, pItem->name, TSDB_CONFIG_OPTION_LEN + VARSTR_HEADER_SIZE);
65,802✔
379

380
    SColumnInfoData* pColInfo = taosArrayGet(pBlock->pDataBlock, col++);
65,802✔
381
    if (pColInfo == NULL) {
65,802!
382
      code = terrno;
×
383
      TAOS_CHECK_GOTO(code, NULL, _exit);
×
384
    }
385

386
    TAOS_CHECK_GOTO(colDataSetVal(pColInfo, numOfRows, name, false), NULL, _exit);
65,802!
387

388
    char      value[TSDB_CONFIG_PATH_LEN + VARSTR_HEADER_SIZE] = {0};
65,802✔
389
    int32_t   valueLen = 0;
65,802✔
390
    SDiskCfg* pDiskCfg = NULL;
65,802✔
391
    if (strcasecmp(pItem->name, "dataDir") == 0 && exSize > 0) {
65,802!
392
      char* buf = &value[VARSTR_HEADER_SIZE];
×
393
      pDiskCfg = taosArrayGet(pItem->array, index);
×
394
      valueLen = tsnprintf(buf, TSDB_CONFIG_PATH_LEN, "%s", pDiskCfg->dir);
×
395
      index++;
×
396
    } else {
397
      TAOS_CHECK_GOTO(cfgDumpItemValue(pItem, &value[VARSTR_HEADER_SIZE], TSDB_CONFIG_PATH_LEN, &valueLen), NULL,
65,802!
398
                      _exit);
399
    }
400
    varDataSetLen(value, valueLen);
65,802✔
401

402
    pColInfo = taosArrayGet(pBlock->pDataBlock, col++);
65,802✔
403
    if (pColInfo == NULL) {
65,802!
404
      code = terrno;
×
405
      TAOS_CHECK_GOTO(code, NULL, _exit);
×
406
    }
407

408
    TAOS_CHECK_GOTO(colDataSetVal(pColInfo, numOfRows, value, false), NULL, _exit);
65,802!
409

410
    char scope[TSDB_CONFIG_SCOPE_LEN + VARSTR_HEADER_SIZE] = {0};
65,802✔
411
    TAOS_CHECK_GOTO(cfgDumpItemScope(pItem, &scope[VARSTR_HEADER_SIZE], TSDB_CONFIG_SCOPE_LEN, &valueLen), NULL, _exit);
65,802!
412
    varDataSetLen(scope, valueLen);
65,802✔
413

414
    pColInfo = taosArrayGet(pBlock->pDataBlock, col++);
65,802✔
415
    if (pColInfo == NULL) {
65,802!
416
      code = terrno;
×
417
      TAOS_CHECK_GOTO(code, NULL, _exit);
×
418
    }
419
    TAOS_CHECK_GOTO(colDataSetVal(pColInfo, numOfRows, scope, false), NULL, _exit);
65,802!
420

421
    char category[TSDB_CONFIG_CATEGORY_LEN + VARSTR_HEADER_SIZE] = {0};
65,802✔
422
    TAOS_CHECK_GOTO(cfgDumpItemCategory(pItem, &category[VARSTR_HEADER_SIZE], TSDB_CONFIG_CATEGORY_LEN, &valueLen),
65,802!
423
                    NULL, _exit);
424
    varDataSetLen(category, valueLen);
65,802✔
425

426
    pColInfo = taosArrayGet(pBlock->pDataBlock, col++);
65,802✔
427
    if (pColInfo == NULL) {
65,802!
428
      code = terrno;
×
429
      TAOS_CHECK_GOTO(code, NULL, _exit);
×
430
    }
431
    TAOS_CHECK_GOTO(colDataSetVal(pColInfo, numOfRows, category, false), NULL, _exit);
65,802!
432

433
    char info[TSDB_CONFIG_INFO_LEN + VARSTR_HEADER_SIZE] = {0};
65,802✔
434
    if (strcasecmp(pItem->name, "dataDir") == 0 && pDiskCfg) {
65,802!
435
      char* buf = &info[VARSTR_HEADER_SIZE];
×
436
      valueLen = tsnprintf(buf, TSDB_CONFIG_INFO_LEN, "level %d primary %d disabled %" PRIi8, pDiskCfg->level,
×
437
                           pDiskCfg->primary, pDiskCfg->disable);
×
438
    } else {
439
      valueLen = 0;
65,802✔
440
    }
441
    varDataSetLen(info, valueLen);
65,802✔
442

443
    pColInfo = taosArrayGet(pBlock->pDataBlock, col++);
65,802✔
444
    if (pColInfo == NULL) {
65,802!
445
      code = terrno;
×
446
      TAOS_CHECK_GOTO(code, NULL, _exit);
×
447
    }
448
    TAOS_CHECK_GOTO(colDataSetVal(pColInfo, numOfRows, info, false), NULL, _exit);
65,802!
449

450
    numOfRows++;
65,802✔
451
    if (index > 0 && index <= exSize) {
65,802!
452
      goto _start;
×
453
    }
454
  }
455
  pBlock->info.rows = numOfRows;
296✔
456
_exit:
296✔
457
  if (locked) cfgUnLock(pConf);
296!
458
  cfgDestroyIter(pIter);
296✔
459
  TAOS_RETURN(code);
296✔
460
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc