You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by ka...@apache.org on 2020/10/17 05:44:26 UTC
[incubator-doris] branch master updated: [Bug] fix illegal defer in
Tablet::rowset_with_max_version() (#4737)
This is an automated email from the ASF dual-hosted git repository.
kangkaisen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git
The following commit(s) were added to refs/heads/master by this push:
new e31b4a4 [Bug] fix illegal defer in Tablet::rowset_with_max_version() (#4737)
e31b4a4 is described below
commit e31b4a4561c0f5aa1f58d91eaaddf8964aab99c6
Author: HuangWei <hu...@apache.org>
AuthorDate: Sat Oct 17 13:44:15 2020 +0800
[Bug] fix illegal defer in Tablet::rowset_with_max_version() (#4737)
---
be/src/olap/tablet.cpp | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/be/src/olap/tablet.cpp b/be/src/olap/tablet.cpp
index b8a07d8..d21c2f3 100644
--- a/be/src/olap/tablet.cpp
+++ b/be/src/olap/tablet.cpp
@@ -327,8 +327,10 @@ const RowsetSharedPtr Tablet::rowset_with_max_version() const {
}
auto iter = _rs_version_map.find(max_version);
- DCHECK(_rs_version_map.find(max_version) != _rs_version_map.end())
- << "invalid version:" << max_version;
+ if (iter == _rs_version_map.end()) {
+ DCHECK(false) << "invalid version:" << max_version;
+ return nullptr;
+ }
return iter->second;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org