Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3502435
D4412.id14344.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
766 B
Referenced Files
None
Subscribers
None
D4412.id14344.diff
View Options
diff --git a/services/backup/src/Reactors/server/SendLogReactor.cpp b/services/backup/src/Reactors/server/SendLogReactor.cpp
--- a/services/backup/src/Reactors/server/SendLogReactor.cpp
+++ b/services/backup/src/Reactors/server/SendLogReactor.cpp
@@ -20,6 +20,13 @@
storedInBlob ? this->blobHolder : this->value,
{},
this->hash);
+ if (database::LogItem::getItemSize(&logItem) > LOG_DATA_SIZE_DATABASE_LIMIT) {
+ throw std::runtime_error(
+ "trying to put into the database an item with size " +
+ std::to_string(database::LogItem::getItemSize(&logItem)) +
+ " that exceeds the limit " +
+ std::to_string(LOG_DATA_SIZE_DATABASE_LIMIT));
+ }
database::DatabaseManager::getInstance().putLogItem(logItem);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 21, 4:06 AM (17 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2683835
Default Alt Text
D4412.id14344.diff (766 B)
Attached To
Mode
D4412: [services] Backup - Send Log - Check the real item size
Attached
Detach File
Event Timeline
Log In to Comment