Do not report ERROR when sample rate equals 100
This commit is contained in:
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user