Skip to content

Commit 072ce58

Browse files
yihong0618WenyXu
andauthored
fix: add fast_drop_path for droprequest (#218)
* fix: add fast_drop_database_path for droprequest Signed-off-by: yihong0618 <zouzou0208@gmail.com> * fix: address review Signed-off-by: yihong0618 <zouzou0208@gmail.com> * fix: change the name to force_drop_all_logical_tables Signed-off-by: yihong0618 <zouzou0208@gmail.com> * fix: change it to better name and add comments Signed-off-by: yihong0618 <zouzou0208@gmail.com> Co-authored-by: WenyXu <wenymedia@gmail.com> --------- Signed-off-by: yihong0618 <zouzou0208@gmail.com> Co-authored-by: WenyXu <wenymedia@gmail.com>
1 parent a25adc8 commit 072ce58

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

proto/greptime/v1/region/server.proto

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,13 @@ message CreateRequest {
106106
// Same as CreateRequests, but for dropping regions.
107107
message DropRequests { repeated DropRequest requests = 1; }
108108

109-
message DropRequest { uint64 region_id = 1; }
109+
message DropRequest {
110+
uint64 region_id = 1;
111+
// Only used by Metric Engine, for fast path drop.
112+
// It only works for Metric Engine, and will be ignored by other engines.
113+
// If true, the Metric Engine will delete logical tables in memory, and drop the physical region eventually.
114+
bool fast_path = 2;
115+
}
110116

111117
message OpenRequest {
112118
uint64 region_id = 1;

0 commit comments

Comments
 (0)