This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new ad8faedac45 [fix](txn_manager) Fix wrong use of std::map::erase in
TxnManager::delete_txn #28507
ad8faedac45 is described below
commit ad8faedac455ae497924b2100ed17a012edbb080
Author: bobhan1 <[email protected]>
AuthorDate: Sat Dec 16 14:50:46 2023 +0800
[fix](txn_manager) Fix wrong use of std::map::erase in
TxnManager::delete_txn #28507
---
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 6ed2f98a327..e4bf4191f71 100644
--- a/be/src/olap/txn_manager.cpp
+++ b/be/src/olap/txn_manager.cpp
@@ -652,8 +652,8 @@ Status TxnManager::delete_txn(OlapMeta* meta, TPartitionId
partition_id,
<< (rowset != nullptr ?
rowset->rowset_id().to_string() : "0");
}
}
+ it->second.erase(load_itr);
}
- it->second.erase(load_itr);
if (it->second.empty()) {
txn_tablet_map.erase(it);
_clear_txn_partition_map_unlocked(transaction_id, partition_id);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]