Page MenuHomePhabricator

D4412.id14344.diff
No OneTemporary

D4412.id14344.diff

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

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)

Event Timeline