mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-16 13:00:40 +00:00
* refactor: remove staled manifest structures Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * add RegionId to FileId Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * rename method Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * fix test cases Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * fix test Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * refactor: introduce RegionFileId - FileId still only consist of an uuid - PathProvider accepts RegionFileId and doesn't need to keep a region id in it - All Index applier takes RegionFileId and respects the region id in the RegionFileId - FileMeta can still derive Serialize/Deserialize - Refactor the CacheManager to accept RegionFileId Signed-off-by: evenyag <realevenyag@gmail.com> * feat: define PathType Signed-off-by: evenyag <realevenyag@gmail.com> * refactor: adding PathType WIP Signed-off-by: evenyag <realevenyag@gmail.com> * refactor: fix compiler errors Signed-off-by: evenyag <realevenyag@gmail.com> * refactor: add path_type to region_dir_from_table_dir Move region_dir_from_table_dir to mito and use join_dir internally Signed-off-by: evenyag <realevenyag@gmail.com> * feat: set path type to ApplierBuilder Signed-off-by: evenyag <realevenyag@gmail.com> * style: fmt code Signed-off-by: evenyag <realevenyag@gmail.com> * fix: fix passing incorrect dir to access layer Signed-off-by: evenyag <realevenyag@gmail.com> * refactor: remove region_dir from CompactionRegion We can get table_dir and path_type from the access layer Signed-off-by: evenyag <realevenyag@gmail.com> * test: fix unit tests Signed-off-by: evenyag <realevenyag@gmail.com> * chore: fix typo Signed-off-by: evenyag <realevenyag@gmail.com> * chore: update comment Signed-off-by: evenyag <realevenyag@gmail.com> * fix: correct marker path Signed-off-by: evenyag <realevenyag@gmail.com> * feat: use AccessLayer::build_region_dir to get region dir Signed-off-by: evenyag <realevenyag@gmail.com> * chore: log entries in test Signed-off-by: evenyag <realevenyag@gmail.com> * fix: set path type in catchup Signed-off-by: evenyag <realevenyag@gmail.com> * test: fix test_open_region_failure test Signed-off-by: evenyag <realevenyag@gmail.com> * chore: fix compiler errors Signed-off-by: evenyag <realevenyag@gmail.com> --------- Signed-off-by: Ruihang Xia <waynestxia@gmail.com> Signed-off-by: evenyag <realevenyag@gmail.com> Co-authored-by: Yingwen <realevenyag@gmail.com>