Skip to content

Commit

Permalink
Fix Restore so that it uses the restore timeout
Browse files Browse the repository at this point in the history
Change the Restore method to override the admin connection timeout with
the restore timeout instead of the normal connection timeout. This
causes RH to respect the restore timeout parameter, as before it used
the admin connection timeout instead of the restore timeout.
  • Loading branch information
icedtoast authored and ferventcoder committed Feb 18, 2013
1 parent 830a655 commit c43baa9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions product/roundhouse/databases/DefaultDatabase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,9 @@ public void restore_database(string restore_from_path, string custom_restore_opt
try
{
int current_connection_timeout = command_timeout;
command_timeout = restore_timeout;
admin_command_timeout = restore_timeout;
run_sql(restore_database_script(restore_from_path, custom_restore_options), ConnectionType.Admin);
command_timeout = current_connection_timeout;
admin_command_timeout = current_connection_timeout;
}
catch (Exception ex)
{
Expand Down

0 comments on commit c43baa9

Please sign in to comment.