From 2a738e1be1437afa41c9e406abf8617a048e2be8 Mon Sep 17 00:00:00 2001 From: dimstars Date: Mon, 27 Nov 2023 06:55:52 +0000 Subject: [PATCH] fix blacklist ret bug --- src/storage/tx/wrs/ob_black_list.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/storage/tx/wrs/ob_black_list.h b/src/storage/tx/wrs/ob_black_list.h index eba531b67b..76cfc865c5 100644 --- a/src/storage/tx/wrs/ob_black_list.h +++ b/src/storage/tx/wrs/ob_black_list.h @@ -301,7 +301,7 @@ public: } else if (OB_ENTRY_NOT_EXIST == ret) { // key不存在,创建value并插入map if (only_update) { - // do nothing + ret = OB_SUCCESS; } else if (OB_FAIL(map_.create(bl_key, value))) { // 可能前面get时还没有这个key,但是在create之前别的线程把这个key插入map了 TRANS_LOG(WARN, "map create error", KR(ret), K(bl_key), K(ls_info));