Page MenuHomePhabricator

D3559.id10810.diff
No OneTemporary

D3559.id10810.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, 1:24 PM (20 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2575273
Default Alt Text
D3559.id10810.diff (876 B)

Event Timeline