You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by mo...@apache.org on 2021/03/11 14:24:14 UTC

[incubator-doris] branch master updated: [Bug] hll serialize 160 items cause backend crash(#5424) (#5425)

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

morningman 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 e5c7a6d  [Bug] hll serialize 160 items cause backend crash(#5424) (#5425)
e5c7a6d is described below

commit e5c7a6dd9f174fc4156cb46f49f42126ddb27ac6
Author: 924060929 <92...@qq.com>
AuthorDate: Thu Mar 11 22:24:01 2021 +0800

    [Bug] hll serialize 160 items cause backend crash(#5424) (#5425)
    
    Co-authored-by: lanhuajian <la...@sankuai.com>
---
 be/src/olap/hll.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/be/src/olap/hll.cpp b/be/src/olap/hll.cpp
index 91c479d..96c5710 100644
--- a/be/src/olap/hll.cpp
+++ b/be/src/olap/hll.cpp
@@ -164,7 +164,7 @@ size_t HyperLogLog::serialize(uint8_t* dst) const {
         break;
     }
     case HLL_DATA_EXPLICIT: {
-        DCHECK(_hash_set.size() < HLL_EXPLICIT_INT64_NUM)
+        DCHECK(_hash_set.size() <= HLL_EXPLICIT_INT64_NUM)
                 << "Number of explicit elements(" << _hash_set.size()
                 << ") should be less or equal than " << HLL_EXPLICIT_INT64_NUM;
         *ptr++ = _type;


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