Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3399814
D4554.id14572.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1010 B
Referenced Files
None
Subscribers
None
D4554.id14572.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
@@ -97,6 +97,11 @@
if (chunk->size() == 0) {
return std::make_unique<grpc::Status>(grpc::Status::OK);
}
+ if (this->persistenceMethod == PersistenceMethod::DB) {
+ throw std::runtime_error(
+ "please do not send multiple tiny chunks, merge the into bigger "
+ "parts instead");
+ }
if (this->persistenceMethod == PersistenceMethod::BLOB) {
if (this->putReactor == nullptr) {
throw std::runtime_error(
@@ -117,6 +122,8 @@
this->putReactor->scheduleSendingDataChunk(
std::make_unique<std::string>(this->value));
this->value = "";
+ } else {
+ this->persistenceMethod = PersistenceMethod::DB;
}
return nullptr;
};
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Dec 3, 4:50 AM (18 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2610290
Default Alt Text
D4554.id14572.diff (1010 B)
Attached To
Mode
D4554: [services] Backup - send log - add case for DB
Attached
Detach File
Event Timeline
Log In to Comment