Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3365962
D4549.id14690.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
D4549.id14690.diff
View Options
diff --git a/services/backup/src/Reactors/server/AddAttachmentsUtility.h b/services/backup/src/Reactors/server/AddAttachmentsUtility.h
--- a/services/backup/src/Reactors/server/AddAttachmentsUtility.h
+++ b/services/backup/src/Reactors/server/AddAttachmentsUtility.h
@@ -13,7 +13,9 @@
namespace reactor {
class AddAttachmentsUtility {
- std::shared_ptr<database::LogItem> moveToS3(std::shared_ptr<database::LogItem> logItem);
+ std::shared_ptr<database::LogItem>
+ moveToS3(std::shared_ptr<database::LogItem> logItem);
+
public:
grpc::Status processRequest(const backup::AddAttachmentsRequest *request);
};
diff --git a/services/backup/src/Reactors/server/AddAttachmentsUtility.cpp b/services/backup/src/Reactors/server/AddAttachmentsUtility.cpp
--- a/services/backup/src/Reactors/server/AddAttachmentsUtility.cpp
+++ b/services/backup/src/Reactors/server/AddAttachmentsUtility.cpp
@@ -56,18 +56,19 @@
return status;
}
-std::shared_ptr<database::LogItem> AddAttachmentsUtility::moveToS3(
- std::shared_ptr<database::LogItem> logItem) {
+std::shared_ptr<database::LogItem>
+AddAttachmentsUtility::moveToS3(std::shared_ptr<database::LogItem> logItem) {
std::string holder = tools::generateHolder(
logItem->getDataHash(), logItem->getBackupID(), logItem->getLogID());
std::string data = std::move(logItem->getValue());
- std::shared_ptr<database::LogItem> newLogItem = std::make_shared<database::LogItem>(
- logItem->getBackupID(),
- logItem->getLogID(),
- true,
- holder,
- logItem->getAttachmentHolders(),
- logItem->getDataHash());
+ std::shared_ptr<database::LogItem> newLogItem =
+ std::make_shared<database::LogItem>(
+ logItem->getBackupID(),
+ logItem->getLogID(),
+ true,
+ holder,
+ logItem->getAttachmentHolders(),
+ logItem->getDataHash());
// put into S3
std::condition_variable blobPutDoneCV;
std::mutex blobPutDoneCVMutex;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 26, 8:43 AM (21 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2584055
Default Alt Text
D4549.id14690.diff (1 KB)
Attached To
Mode
D4549: [services] Backup - fix formatting
Attached
Detach File
Event Timeline
Log In to Comment