| 268 | } |
| 269 | |
| 270 | bool TabletNode::CanUnload() { |
| 271 | MutexLock lock(&mutex_); |
| 272 | if (unloading_count_ < static_cast<uint32_t>(FLAGS_tera_master_max_unload_concurrency)) { |
| 273 | ++unloading_count_; |
| 274 | return true; |
| 275 | } |
| 276 | return false; |
| 277 | } |
| 278 | |
| 279 | void TabletNode::FinishUnload() { |
| 280 | MutexLock lock(&mutex_); |