From 95aa3c85b6ee864223849170f15a1ee640b4c5b5 Mon Sep 17 00:00:00 2001 From: yukun Date: Wed, 30 Jun 2021 17:56:12 +0800 Subject: [PATCH] Add index_name check for drop_index (#6217) Signed-off-by: fishpenguin --- internal/proxy/task.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/proxy/task.go b/internal/proxy/task.go index 98caa60925..d618939d7e 100644 --- a/internal/proxy/task.go +++ b/internal/proxy/task.go @@ -3372,6 +3372,10 @@ func (dit *DropIndexTask) PreExecute(ctx context.Context) error { return err } + if dit.IndexName == "" { + dit.IndexName = Params.DefaultIndexName + } + return nil }