init error
This commit is contained in:
parent
0b9058162a
commit
9af7b7b178
|
@ -1620,7 +1620,7 @@ _exit:
|
||||||
int32_t label_count =1;
|
int32_t label_count =1;
|
||||||
const char *sample_labels[] = {"vgid"};
|
const char *sample_labels[] = {"vgid"};
|
||||||
insert_counter = taos_counter_new("insert_counter", "counter for insert sql", label_count, sample_labels);
|
insert_counter = taos_counter_new("insert_counter", "counter for insert sql", label_count, sample_labels);
|
||||||
insert_counter = taos_collector_registry_must_register_metric(insert_counter);
|
taos_collector_registry_must_register_metric(insert_counter);
|
||||||
}
|
}
|
||||||
|
|
||||||
char vgId[50];
|
char vgId[50];
|
||||||
|
|
|
@ -122,7 +122,8 @@ int taos_collector_registry_register_metric(taos_metric_t *metric) {
|
||||||
taos_metric_t *taos_collector_registry_must_register_metric(taos_metric_t *metric) {
|
taos_metric_t *taos_collector_registry_must_register_metric(taos_metric_t *metric) {
|
||||||
int err = taos_collector_registry_register_metric(metric);
|
int err = taos_collector_registry_register_metric(metric);
|
||||||
if (err != 0) {
|
if (err != 0) {
|
||||||
exit(err);
|
//exit(err);
|
||||||
|
return NULL;
|
||||||
}
|
}
|
||||||
return metric;
|
return metric;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue