Skip to content

Commit cf3e3e0

Browse files
committed
fix: review comments
1 parent 27f3cfc commit cf3e3e0

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/server/search/search_family.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1120,7 +1120,6 @@ void SearchFamily::FtAlter(CmdArgList args, const CommandContext& cmd_cntx) {
11201120
// Rebuild index
11211121
// TODO: Introduce partial rebuild
11221122
auto upd_cb = [idx_name, index_info](Transaction* tx, EngineShard* es) {
1123-
// Drop the old index (we don't need the documents)
11241123
(void)es->search_indices()->DropIndex(idx_name);
11251124
es->search_indices()->InitIndex(tx->GetOpArgs(es), idx_name, index_info);
11261125
return OpStatus::OK;
@@ -1179,7 +1178,6 @@ void SearchFamily::FtDropIndex(CmdArgList args, const CommandContext& cmd_cntx)
11791178
DCHECK(num_deleted == 0u || num_deleted == shard_set->size());
11801179
if (num_deleted == 0u)
11811180
return cmd_cntx.rb->SendError("-Unknown Index name");
1182-
11831181
return cmd_cntx.rb->SendOk();
11841182
}
11851183

0 commit comments

Comments
 (0)