Commit 1324afec authored by Matthieu Dorier's avatar Matthieu Dorier
Browse files

corrected bug that removed the original database no matter what

parent c57ab026
......@@ -2045,8 +2045,11 @@ static void sdskv_migrate_database_ult(hg_handle_t handle)
out.ret = status;
break;
}
/* remove the target from the list of managed targets */
sdskv_provider_remove_database(svr_ctx, in.source_db_id);
if(in.remove_src) {
/* remove the target from the list of managed targets */
sdskv_provider_remove_database(svr_ctx, in.source_db_id);
}
out.ret = SDSKV_SUCCESS;
} while(false);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment