src/yb/master/ts_manager.cc
// Register a callback to be called when the number of tablet servers reaches a certain number.
Register a callback to be called when the number of tablet servers reaches a certain number.
Register a callback to be called when the number of tablet servers reaches a certain number .
void TSManager::SetTSCountCallback(int min_count, TSCountCallback callback) {
  std::lock_guard<rw_spinlock> l(lock_);
  ts_count_callback_ = std::move(callback);
  ts_count_callback_min_count_ = min_count;
}
void TSManager :: SetTSCountCallback ( int min_count , TSCountCallback callback ) { std :: lock_guard < rw_spinlock > l ( lock_ ) ; ts_count_callback_ = std :: move ( callback ) ; ts_count_callback_min_count_ = min_count ; }
Register a callback to be called when the number of tablet servers reaches a certain number.
Register a callback to be called when the number of tablet servers reaches a certain number .