This is an automated email from the ASF dual-hosted git repository.

kxiao pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-2.0 by this push:
     new 99109f4e90b [fix](txn_manager) Fix wrong use of std::map::erase in 
TxnManager::delete_txn #28507 (#28533)
99109f4e90b is described below

commit 99109f4e90bf10fc51b2ac1ad9e0c40ce5231ab4
Author: bobhan1 <bh2444151...@outlook.com>
AuthorDate: Mon Dec 18 12:13:32 2023 +0800

    [fix](txn_manager) Fix wrong use of std::map::erase in 
TxnManager::delete_txn #28507 (#28533)
---
 be/src/olap/txn_manager.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/be/src/olap/txn_manager.cpp b/be/src/olap/txn_manager.cpp
index 23efbcd1a73..429c230f249 100644
--- a/be/src/olap/txn_manager.cpp
+++ b/be/src/olap/txn_manager.cpp
@@ -614,8 +614,8 @@ Status TxnManager::delete_txn(OlapMeta* meta, TPartitionId 
partition_id,
                                         : "0");
             }
         }
+        it->second.erase(load_itr);
     }
-    it->second.erase(tablet_info);
     if (it->second.empty()) {
         txn_tablet_map.erase(it);
         _clear_txn_partition_map_unlocked(transaction_id, partition_id);


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to