| 37 | } |
| 38 | |
| 39 | TabletNode::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 | |
| 59 | TabletNode::TabletNode(const std::string& addr, const std::string& uuid) |
| 60 | : addr_(addr), |
nothing calls this directly
no test coverage detected