From 7c7749fb13f051d78740dcad5ac8052af98ef8b8 Mon Sep 17 00:00:00 2001 From: kongfy Date: Fri, 22 Oct 2021 17:30:45 +0800 Subject: [PATCH] update partition audit info cache in trans_end --- src/storage/memtable/ob_memtable_context.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/storage/memtable/ob_memtable_context.cpp b/src/storage/memtable/ob_memtable_context.cpp index 4b63f8bec4..07b98d9ea5 100644 --- a/src/storage/memtable/ob_memtable_context.cpp +++ b/src/storage/memtable/ob_memtable_context.cpp @@ -795,6 +795,7 @@ int ObMemtableCtx::do_trans_end(const bool commit, const int64_t trans_version, if (OB_UNLIKELY(ATOMIC_LOAD(&callback_alloc_count_) != ATOMIC_LOAD(&callback_free_count_))) { TRANS_LOG(ERROR, "callback alloc and free count not match", K(*this)); } + (void)partition_audit_info_cache_.stmt_end_update_audit_info(commit); // flush partition audit statistics cached in ctx to partition if (NULL != ATOMIC_LOAD(&ctx_) && OB_UNLIKELY(OB_SUCCESS != (tmp_ret = flush_audit_partition_cache_(commit)))) { TRANS_LOG(WARN, "flush audit partition cache error", K(tmp_ret), K(commit), K(*ctx_)); -- GitLab