Skip to content

Commit

Permalink
🚧 fix(bug): alias during deletion of index
Browse files Browse the repository at this point in the history
  • Loading branch information
mxchinegod committed Jan 20, 2024
1 parent c0f2d9b commit 0871bf8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions magnet/utils/milvus.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ def delete_index(self):
None
"""
if utility.has_collection(self.config['INDEX']):
utility.drop_collection(self.config['INDEX'])
if utility.has_collection(self.config['INDEX'], using="magnet"):
utility.drop_collection(self.config['INDEX'], using="magnet")
_f('warn', f"{self.config['INDEX']} deleted")

def _pw(self):
Expand Down

0 comments on commit 0871bf8

Please sign in to comment.