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

taosdata / TDengine / #5130

26 Oct 2026 11:45AM UTC coverage: 64.429% (-9.4%) from 73.872%
#5130

push

travis-ci

kailixu
fix: keep extconnector symbols when catalog is linked last

Static GNU ld scans each archive once, so catalog consumers fail on
extLoadDialectDefaults after the last libextconnector.a.

314472 of 488088 relevant lines covered (64.43%)

57181010.44 hits per line

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

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

18
#include "cos.h"
19
#include "monitor.h"
20
#include "tsdb.h"
21
#include "vnd.h"
22

23
static volatile int32_t VINIT = 0;
24

25
int vnodeInit(StopDnodeFp stopDnodeFp) {
211,314 ✔
26
  if (atomic_val_compare_exchange_32(&VINIT, 0, 1)) {
211,314 ✔
27
    return 0;
×
28
  }
29

30
  TAOS_CHECK_RETURN(vnodeAsyncOpen());
211,314 ✔
31
  TAOS_CHECK_RETURN(walInit(stopDnodeFp));
211,314 ✔
32

33
  monInitVnode();
211,314 ✔
34

35
  return 0;
211,314 ✔
36
}
37

38
void vnodeCleanup() {
211,314 ✔
39
  if (atomic_val_compare_exchange_32(&VINIT, 1, 0) == 0) return;
211,314 ✔
40
  vnodeAsyncClose();
211,314 ✔
41
  walCleanUp();
211,314 ✔
42
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc