Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3247714
D6624.id22121.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
840 B
Referenced Files
None
Subscribers
None
D6624.id22121.diff
View Options
diff --git a/services/tunnelbroker/src/libcpp/Tunnelbroker.cpp b/services/tunnelbroker/src/libcpp/Tunnelbroker.cpp
--- a/services/tunnelbroker/src/libcpp/Tunnelbroker.cpp
+++ b/services/tunnelbroker/src/libcpp/Tunnelbroker.cpp
@@ -257,8 +257,12 @@
}});
messagesIDs.push_back(rust::String{messageID});
};
- comm::network::database::DatabaseManager::getInstance()
- .putMessageItemsByBatch(vectorOfMessages);
+ if (!comm ::network::config::ConfigManager::getInstance().isParameterSet(
+ comm::network::config::ConfigManager::
+ OPTION_MESSAGES_SKIP_PERSISTENCE)) {
+ comm::network::database::DatabaseManager::getInstance()
+ .putMessageItemsByBatch(vectorOfMessages);
+ };
for (auto message : vectorOfMessages) {
comm::network::AmqpManager::getInstance().send(&message);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 16, 6:27 AM (21 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2496679
Default Alt Text
D6624.id22121.diff (840 B)
Attached To
Mode
D6624: [services] Tunnelbroker - Disabling messages persistence on messages send
Attached
Detach File
Event Timeline
Log In to Comment