Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3260371
D4078.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D4078.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D4078: [services] Backup - Create new backup - avoid suppressing database errors
Attached
Detach File
Event Timeline
Log In to Comment