Do not report ERROR when sample rate equals 100

This commit is contained in:
ZenoWang
2024-02-06 14:49:31 +00:00
committed by ob-robot
parent 1f1d5c08ae
commit c8ef409bf3
3710 changed files with 486984 additions and 3083329 deletions

View File

@ -156,12 +156,12 @@ void StackMgr::insert(ObStackHeader *header)
{
if (header != nullptr) {
abort_unless(header->check_magic());
rwlock_.wrlock(common::ObLatchIds::DEFAULT_SPIN_RWLOCK);
mutex_.lock();
header->prev_ = &dummy_;
header->next_ = dummy_.next_;
dummy_.next_->prev_ = header;
dummy_.next_ = header;
rwlock_.unlock();
mutex_.unlock();
}
}
@ -169,11 +169,11 @@ void StackMgr::erase(ObStackHeader *header)
{
if (header != nullptr) {
abort_unless(header->check_magic());
rwlock_.wrlock(common::ObLatchIds::DEFAULT_SPIN_RWLOCK);
mutex_.lock();
header->prev_->next_ = header->next_;
header->next_->prev_ = header->prev_;
header->prev_ = header->next_ = header;
rwlock_.unlock();
mutex_.unlock();
}
}