Page MenuHomePhabricator

D4078.diff
No OneTemporary

D4078.diff

diff --git a/services/backup/src/Reactors/server/CreateNewBackupReactor.cpp b/services/backup/src/Reactors/server/CreateNewBackupReactor.cpp
--- a/services/backup/src/Reactors/server/CreateNewBackupReactor.cpp
+++ b/services/backup/src/Reactors/server/CreateNewBackupReactor.cpp
@@ -96,20 +96,17 @@
throw std::runtime_error(
this->putReactor->getStatusHolder()->getStatus().error_message());
}
- try {
- // TODO add recovery data
- // TODO handle attachments holders
- database::BackupItem backupItem(
- this->userID,
- this->backupID,
- tools::getCurrentTimestamp(),
- tools::generateRandomString(),
- this->holder,
- {});
- database::DatabaseManager::getInstance().putBackupItem(backupItem);
- } catch (std::runtime_error &e) {
- std::cout << "db operations error: " << e.what() << std::endl;
- }
+ // TODO add recovery data
+ // TODO handle attachments holders
+ database::BackupItem backupItem(
+ this->userID,
+ this->backupID,
+ tools::getCurrentTimestamp(),
+ tools::generateRandomString(),
+ this->holder,
+ {});
+ database::DatabaseManager::getInstance().putBackupItem(backupItem);
+ std::cout << "done creating backup " << backupItem.getBackupID() << std::endl;
}
} // namespace reactor

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 16, 10:34 PM (19 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2506149
Default Alt Text
D4078.diff (1 KB)

Event Timeline