1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-10 01:17:40 +03:00

F : Rename all prolog_restore to restore ()

This commit is contained in:
Pavel Czerný 2024-05-13 13:21:56 +02:00 committed by GitHub
parent cc77dda3f8
commit e68305c772
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 7 deletions

View File

@ -355,7 +355,7 @@ public:
/**
* This function restores VM disk from backup
*/
void trigger_prolog_restore(int vid, int img_id, int inc_id, int disk_id);
void trigger_restore(int vid, int img_id, int inc_id, int disk_id);
};
#endif /*TRANSFER_MANAGER_H*/

View File

@ -2888,7 +2888,7 @@ int DispatchManager::restore(int vid, int img_id, int inc_id, int disk_id,
vm->set_state(VirtualMachine::RESTORE);
// Call driver action to copy disk from image backup to VM system disk
tm->trigger_prolog_restore(vm->get_oid(), img_id, inc_id, disk_id);
tm->trigger_restore(vm->get_oid(), img_id, inc_id, disk_id);
vm->set_vm_info();

View File

@ -2239,7 +2239,7 @@ void TransferManager::trigger_resize(int vid)
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
void TransferManager::trigger_prolog_restore(int vid, int img_id, int inc_id,
void TransferManager::trigger_restore(int vid, int img_id, int inc_id,
int disk_id)
{
trigger([this, vid, img_id, inc_id, disk_id]{
@ -2271,7 +2271,7 @@ void TransferManager::trigger_prolog_restore(int vid, int img_id, int inc_id,
goto error_history;
}
xfr_name = vm->get_transfer_file() + ".prolog_restore";
xfr_name = vm->get_transfer_file() + ".restore";
xfr.open(xfr_name.c_str(), ios::out | ios::trunc);
if (xfr.fail() == true)
@ -2299,15 +2299,15 @@ void TransferManager::trigger_prolog_restore(int vid, int img_id, int inc_id,
return;
error_driver:
oss << "prolog_restore, error getting TM driver.";
oss << "restore, error getting TM driver.";
goto error_common;
error_history:
oss << "prolog_restore, the VM has no history";
oss << "restore, the VM has no history";
goto error_common;
error_file:
oss << "prolog_restore, could not open file: " << xfr_name;
oss << "restore, could not open file: " << xfr_name;
goto error_common;
error_common: