Skip to content

Commit

Permalink
Check container name (#6971) (#6988)
Browse files Browse the repository at this point in the history
Co-authored-by: 杨赫然 <[email protected]>
  • Loading branch information
feiniks and 杨赫然 authored Nov 1, 2024
1 parent c33f4a7 commit b3da26a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/migrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,10 @@ def main(argv):
for dtype in dtypes:
orig_store = orig_obj_factory.get_obj_store(dtype)
dest_store = dest_obj_factory.get_obj_store(dtype)
if orig_store.get_name() == dest_store.get_name() and \
orig_store.get_container_name() == dest_store.get_container_name():
logging.warning('%s does not support migration between identical storage' % (orig_store.get_name()))
sys.exit()
ObjMigrateWorker(orig_store, dest_store, dtype, decrypt=decrypt).start()

if __name__ == '__main__':
Expand Down

0 comments on commit b3da26a

Please sign in to comment.