nebula
nebula copied to clipboard
refactor db_upgrader, more meaningful for `dst_db_path` parameter
in db_upgrader, when we upgrade from v1 to v2:
- read from src_db_path, and then write to dst_db_path
but when we upgrade from v2 to v3:
- rewrite to src_db_path directly.
- dst_db_path is useless.
so, there're some issues:
- dst_db_path would do nothing, but still copy wal to dst, so need to create a directory.
- won't copy data to dst_db_path, a little confused.
- there is no effective for
--compactionsparameter.
BTW, could we make the checkpoint automatically? and then no need for users to backup the original data manually.
cc @randomJoe211