From cb11bafd09cc4b145b80d49274a493dd8d929732 Mon Sep 17 00:00:00 2001 From: dimstars Date: Wed, 4 Jan 2023 11:11:53 +0000 Subject: [PATCH] fix ObBLValue::update_ts_ is not initialized --- src/observer/virtual_table/ob_information_kvcache_table.h | 6 +++--- src/storage/tx/wrs/ob_black_list.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/observer/virtual_table/ob_information_kvcache_table.h b/src/observer/virtual_table/ob_information_kvcache_table.h index 2f7512dad..49caa9252 100644 --- a/src/observer/virtual_table/ob_information_kvcache_table.h +++ b/src/observer/virtual_table/ob_information_kvcache_table.h @@ -18,9 +18,9 @@ #include "lib/stat/ob_di_cache.h" -namespace oceanbase -{ -namespace common +namespace oceanbase +{ +namespace common { class ObObj; } diff --git a/src/storage/tx/wrs/ob_black_list.h b/src/storage/tx/wrs/ob_black_list.h index ddd27b33b..c80d68d55 100644 --- a/src/storage/tx/wrs/ob_black_list.h +++ b/src/storage/tx/wrs/ob_black_list.h @@ -153,7 +153,7 @@ public: class ObBLValue : public ObBlackListHashValue { public: - ObBLValue() {} + ObBLValue() : update_ts_(0) {} int init(const ObBLKey &key) { int ret = OB_SUCCESS;