[FEAT MERGE] implement Medium Compaction & adaptive Compaction Strategy

This commit is contained in:
obdev
2022-12-19 13:26:58 +00:00
committed by ob-robot
parent 5c19d8c8c7
commit c94062401a
177 changed files with 12721 additions and 3494 deletions

View File

@ -16,6 +16,7 @@
#include "blocksstable/ob_block_sstable_struct.h"
#include "ob_i_table.h"
#include "compaction/ob_i_compaction_filter.h"
#include "compaction/ob_compaction_util.h"
namespace oceanbase
{
@ -113,7 +114,7 @@ public:
~ObSSTableMergeInfo() = default;
bool is_valid() const;
int add(const ObSSTableMergeInfo &other);
OB_INLINE bool is_major_merge() const { return storage::is_major_merge(merge_type_); }
OB_INLINE bool is_major_merge_type() const { return storage::is_major_merge_type(merge_type_); }
void dump_info(const char *msg);
void reset();
TO_STRING_KV(K_(tenant_id), K_(ls_id), K_(tablet_id), K_(compaction_scn),
@ -157,17 +158,6 @@ public:
char comment_[common::OB_COMPACTION_EVENT_STR_LENGTH];
};
struct ObMergeChecksumInfo final
{
public:
ObMergeChecksumInfo();
~ObMergeChecksumInfo() = default;
int64_t *column_checksums_;
int64_t **increment_column_checksums_;
int64_t concurrent_cnt_;
int64_t column_count_;
};
} // end namespace storage
} // end namespace oceanbase