Skip to content

Commit

Permalink
3
Browse files Browse the repository at this point in the history
  • Loading branch information
Yukang-Lian committed Jul 12, 2023
1 parent e7ad4ce commit 700d364
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 12 deletions.
2 changes: 1 addition & 1 deletion be/src/olap/tablet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3286,7 +3286,7 @@ Status Tablet::full_compaction_update_delete_bitmap(const RowsetSharedPtr& rowse
for (const auto& it : _rs_version_map) {
const int64_t& cur_version = it.first.first;
const RowsetSharedPtr& published_rowset = it.second;
if (it.first.first > max_version) {
if (cur_version > max_version) {
RETURN_IF_ERROR(_full_compaction_calc_delete_bitmap(published_rowset, rowset,
cur_version, rowset_writer));
}
Expand Down
6 changes: 0 additions & 6 deletions be/src/olap/tablet_meta.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
#include <json2pb/pb_to_json.h>
#include <time.h>

#include <mutex>
#include <set>
#include <utility>

Expand Down Expand Up @@ -932,11 +931,6 @@ void DeleteBitmap::remove(const BitmapKey& start, const BitmapKey& end) {
}
}

void DeleteBitmap::clear() {
std::lock_guard l(lock);
delete_bitmap.clear();
}

bool DeleteBitmap::contains(const BitmapKey& bmk, uint32_t row_id) const {
std::shared_lock l(lock);
auto it = delete_bitmap.find(bmk);
Expand Down
5 changes: 0 additions & 5 deletions be/src/olap/tablet_meta.h
Original file line number Diff line number Diff line change
Expand Up @@ -349,11 +349,6 @@ class DeleteBitmap {
*/
void remove(const BitmapKey& lower_key, const BitmapKey& upper_key);

/**
* Clears all bitmaps
*/
void clear();

/**
* Checks if the given row is marked deleted
*
Expand Down

0 comments on commit 700d364

Please sign in to comment.