Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32561906
D4634.1767328732.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D4634.1767328732.diff
View Options
diff --git a/services/commtest/tests/backup_performance_test.rs b/services/commtest/tests/backup_performance_test.rs
--- a/services/commtest/tests/backup_performance_test.rs
+++ b/services/commtest/tests/backup_performance_test.rs
@@ -175,7 +175,39 @@
}
}
- // ADD ATTACHMENTS
+ // ADD ATTACHMENTS - LOGS
+ rt.block_on(async {
+ println!("performing ADD ATTACHMENTS - LOGS operations");
+ let mut handlers = vec![];
+ for backup_item in backup_data {
+ let backup_item_cloned = backup_item.clone();
+ for log_index in 0..backup_item_cloned.log_items.len() {
+ let backup_item_recloned = backup_item_cloned.clone();
+ let mut client_cloned = client.clone();
+ handlers.push(tokio::spawn(async move {
+ if backup_item_recloned
+ .backup_item
+ .attachments_holders
+ .is_empty()
+ {
+ return ();
+ }
+ add_attachments::run(
+ &mut client_cloned,
+ &backup_item_recloned,
+ Some(log_index),
+ )
+ .await
+ .unwrap();
+ }));
+ }
+ }
+
+ for handler in handlers {
+ handler.await.unwrap();
+ }
+ });
+
// PULL BACKUP
})
.await
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 2, 4:38 AM (2 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5878330
Default Alt Text
D4634.1767328732.diff (1 KB)
Attached To
Mode
D4634: [services] Tests - Backup - Add attachments for logs
Attached
Detach File
Event Timeline
Log In to Comment