Skip to content

Commit 2c8fe90

Browse files
committed
r
1 parent 7a7e46d commit 2c8fe90

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

be/src/olap/tablet_meta.cpp

+5-3
Original file line numberDiff line numberDiff line change
@@ -1321,7 +1321,7 @@ std::shared_ptr<roaring::Roaring> DeleteBitmap::get_agg(const BitmapKey& bmk) co
13211321
handle == nullptr
13221322
? nullptr
13231323
: reinterpret_cast<AggCache::Value*>(_agg_cache->repr()->value(handle));
1324-
Cache::Handle* handle2 = nullptr;
1324+
// Cache::Handle* handle2 = nullptr;
13251325
// FIXME: do we need a mutex here to get rid of duplicated initializations
13261326
// of cache entries in some cases?
13271327
if (val == nullptr) { // Renew if needed, put a new Value to cache
@@ -1331,12 +1331,14 @@ std::shared_ptr<roaring::Roaring> DeleteBitmap::get_agg(const BitmapKey& bmk) co
13311331
BitmapKey agg_bmk = {std::get<0>(bmk), std::get<1>(bmk), start_version};
13321332
std::string agg_key_str = agg_cache_key(_tablet_id, agg_bmk); // Cache key container
13331333
CacheKey agg_key2(agg_key_str);
1334-
handle2 = _agg_cache->repr()->lookup(agg_key2);
1334+
Cache::Handle* handle2 = _agg_cache->repr()->lookup(agg_key2);
13351335
if (handle2 == nullptr) {
13361336
start_version = 0;
13371337
// val = new AggCache::Value();
13381338
} else {
1339-
val = reinterpret_cast<AggCache::Value*>(_agg_cache->repr()->value(handle2));
1339+
auto val2 = reinterpret_cast<AggCache::Value*>(_agg_cache->repr()->value(handle2));
1340+
val->bitmap |= val2->bitmap;
1341+
_agg_cache->repr()->release(handle2);
13401342
}
13411343
LOG(INFO) << "sout: start agg for tablet=" << _tablet_id
13421344
<< ", rowset=" << std::get<0>(bmk).to_string()

cit.sh

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
git add .
3+
git commit -m "r"
4+
git log -1
5+
git push origin delete-dm-when-compact-0312
6+

0 commit comments

Comments
 (0)