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

File diff suppressed because it is too large Load Diff

View File

@ -57,16 +57,16 @@ int check_sequence_set_violation(const concurrent_control::ObWriteFlag ,
}
} // concurrent_control
namespace share
namespace common
{
// override the function
int ObMemstoreAllocator::set_memstore_threshold_without_lock()
int ObGMemstoreAllocator::set_memstore_threshold_without_lock(uint64_t tenant_id)
{
int64_t memstore_threshold = INT64_MAX;
arena_.set_memstore_threshold(memstore_threshold);
return OB_SUCCESS;
}
void* ObMemstoreAllocator::alloc(AllocHandle& handle, int64_t size)
void* ObGMemstoreAllocator::alloc(AllocHandle& handle, int64_t size)
{
int64_t align_size = upper_align(size, sizeof(int64_t));
if (!handle.is_id_valid()) {
@ -78,7 +78,7 @@ void* ObMemstoreAllocator::alloc(AllocHandle& handle, int64_t size)
}
}
if (arena_.allocator_ == nullptr) {
if (arena_.init() != OB_SUCCESS) {
if (arena_.init(OB_SERVER_TENANT_ID) != OB_SUCCESS) {
abort();
}
}
@ -333,13 +333,7 @@ public:
context.init(query_flag, store_ctx, allocator, trans_version_range);
ObStoreRowkey tmp_key;
ObMemtableKey mtk;
tmp_key.assign(write_row.row_val_.cells_, tm_->iter_param_.get_schema_rowkey_count());
mtk.encode(tm_->columns_, &tmp_key);
return mt.set_(tm_->iter_param_, tm_->columns_, write_row, nullptr, nullptr, mtk, context);
return mt.set_(tm_->iter_param_, tm_->columns_, write_row, nullptr, nullptr, context);
}
int write(int64_t key, int64_t val, ObMemtable &mt, int64_t snapshot_version = 1000) {
ObDatumRowkey row_key;