MCPcopy Create free account
hub / github.com/apache/brpc / StartIndexingIfNeeded

Function StartIndexingIfNeeded

src/brpc/span.cpp:570–575  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

568}
569
570static int StartIndexingIfNeeded() {
571 if (pthread_once(&start_span_indexing_once, StartSpanIndexing) != 0) {
572 return -1;
573 }
574 return started_span_indexing ? 0 : -1;
575}
576
577inline int GetSpanDB(butil::intrusive_ptr<SpanDB>* db) {
578 BAIDU_SCOPED_LOCK(g_span_db_mutex);

Callers 1

dump_to_dbMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected