@@ -259,7 +259,6 @@ int ObSharedStorageNetThrotManager::collect_predict_resource(const int64_t &expi
259259 const int64_t current_time = ObTimeUtility::current_time ();
260260 // RPC2.1: RS asks observer for the required quotas of all storages
261261 {
262- ObSpinLockGuard guard (lock_);
263262 obrpc::ObEndpointRegMap::iterator it = endpoint_infos_map_.begin ();
264263 for (; OB_SUCC (ret) && it != endpoint_infos_map_.end (); ++it) {
265264 ObSSNTEndpointArg arg (it->first , it->second .storage_keys_ , it->second .expire_time_ );
@@ -286,7 +285,6 @@ int ObSharedStorageNetThrotManager::collect_predict_resource(const int64_t &expi
286285 LOG_WARN (
287286 " cnt not match" , KR (ret), " return_cnt" , return_code_array.count (), " server_cnt" , endpoint_infos_map_.size ());
288287 } else {
289- ObSpinLockGuard guard (lock_);
290288 for (int64_t i = 0 ; OB_SUCC (ret) && i < return_code_array.size (); ++i) {
291289 const ObAddr &addr = proxy_batch.get_dests ().at (i);
292290 if (OB_SUCCESS != return_code_array.at (i)) {
@@ -395,7 +393,6 @@ int ObSharedStorageNetThrotManager::assign_type_value(
395393int ObSharedStorageNetThrotManager::update_quota_plan ()
396394{
397395 int ret = OB_SUCCESS;
398- ObSpinLockGuard guard (lock_);
399396 obrpc::ObBucketThrotMap::iterator it = bucket_throt_map_.begin ();
400397 int tmp_ret = OB_SUCCESS;
401398 for (; it != bucket_throt_map_.end (); ++it) {
@@ -622,7 +619,6 @@ int ObSharedStorageNetThrotManager::commit_quota_plan()
622619 const int64_t timeout_ts = GCONF.rpc_timeout ;
623620 ObArray<int > return_code_array;
624621 ObSEArray<std::pair<ObAddr, obrpc::ObSharedDeviceResourceArray>, 7 > send_rpc_arr;
625- ObSpinLockGuard guard (lock_);
626622 {
627623 obrpc::ObEndpointRegMap::iterator iter = endpoint_infos_map_.begin ();
628624 for (; iter != endpoint_infos_map_.end (); ++iter) { // commit to each observer
0 commit comments