From 3b60c27e3043564d2560d93b160c11c6d8056036 Mon Sep 17 00:00:00 2001 From: obdev Date: Wed, 26 Oct 2022 14:58:52 +0800 Subject: [PATCH] fix BCAS not judging the return value --- src/storage/tx/ob_id_service.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/storage/tx/ob_id_service.cpp b/src/storage/tx/ob_id_service.cpp index 94a6c9cb3..c3fac3735 100644 --- a/src/storage/tx/ob_id_service.cpp +++ b/src/storage/tx/ob_id_service.cpp @@ -257,7 +257,7 @@ int ObIDService::flush(int64_t rec_log_ts) if (OB_FAIL(update_ls_id_meta(true))) { TRANS_LOG(WARN, "update id meta of ls meta fail", K(ret), K(service_type_)); } else { - ATOMIC_BCAS(&rec_log_ts_, latest_rec_log_ts, INT_MAX64); + (void)ATOMIC_BCAS(&rec_log_ts_, latest_rec_log_ts, INT_MAX64); } TRANS_LOG(INFO, "flush", K(ret), K(service_type_), K(rec_log_ts_), K(limited_id_)); }