Page MenuHomePhabricator

D4549.diff
No OneTemporary

D4549.diff

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

Mime Type
text/plain
Expires
Fri, Nov 29, 7:19 PM (21 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2595513
Default Alt Text
D4549.diff (1 KB)

Event Timeline