MCPcopy Create free account
hub / github.com/baidu/tera / TabletNode

Method TabletNode

src/master/tabletnode_manager.cc:39–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39TabletNode::TabletNode()
40 : state_(kOffline),
41 report_status_(kTabletNodeIsRunning),
42 data_size_(0),
43 qps_(0),
44 load_(0),
45 persistent_cache_size_(0),
46 update_time_(0),
47 query_fail_count_(0),
48 onload_count_(0),
49 unloading_count_(0),
50 onsplit_count_(0),
51 plan_move_in_count_(0) {
52 info_.set_addr("");
53 info_.set_status_m(NodeStateToString(state_));
54 info_.set_timestamp(get_micros());
55 timestamp_ = get_millis();
56 // ref_count_.Inc();
57}
58
59TabletNode::TabletNode(const std::string& addr, const std::string& uuid)
60 : addr_(addr),

Callers

nothing calls this directly

Calls 3

NodeStateToStringFunction · 0.85
get_millisFunction · 0.85
get_microsFunction · 0.50

Tested by

no test coverage detected