Page MenuHomePhabricator

D3559.diff
No OneTemporary

D3559.diff

diff --git a/services/backup/docker-server/contents/server/src/DatabaseManager.cpp b/services/backup/docker-server/contents/server/src/DatabaseManager.cpp
--- a/services/backup/docker-server/contents/server/src/DatabaseManager.cpp
+++ b/services/backup/docker-server/contents/server/src/DatabaseManager.cpp
@@ -68,9 +68,11 @@
request.AddItem(
BackupItem::FIELD_COMPACTION_HOLDER,
Aws::DynamoDB::Model::AttributeValue(item.getCompactionHolder()));
- request.AddItem(
- BackupItem::FIELD_ATTACHMENT_HOLDERS,
- Aws::DynamoDB::Model::AttributeValue(item.getAttachmentHolders()));
+ if (!item.getAttachmentHolders().empty()) {
+ request.AddItem(
+ BackupItem::FIELD_ATTACHMENT_HOLDERS,
+ Aws::DynamoDB::Model::AttributeValue(item.getAttachmentHolders()));
+ }
this->innerPutItem(std::make_shared<BackupItem>(item), request);
}

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 24, 11:35 AM (22 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2575273
Default Alt Text
D3559.diff (876 B)

Event Timeline