| 81 | } |
| 82 | |
| 83 | void LoadTabletProcedure::LoadTabletAsyncWrapper(std::weak_ptr<LoadTabletProcedure> weak_proc, |
| 84 | TabletNodePtr dest_node) { |
| 85 | auto proc = weak_proc.lock(); |
| 86 | if (!proc) { |
| 87 | LOG(WARNING) << "weak_ptr expired, giveup this loadtabletasync try"; |
| 88 | return; |
| 89 | } |
| 90 | return proc->LoadTabletAsync(dest_node); |
| 91 | } |
| 92 | |
| 93 | void LoadTabletProcedure::LoadTabletAsync(TabletNodePtr dest_node) { |
| 94 | if (dest_node->NodeDown()) { |
nothing calls this directly
no test coverage detected