Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3490300
D6622.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D6622.diff
View Options
diff --git a/services/tunnelbroker/src/libcpp/src/Tools/ConfigManager.h b/services/tunnelbroker/src/libcpp/src/Tools/ConfigManager.h
--- a/services/tunnelbroker/src/libcpp/src/Tools/ConfigManager.h
+++ b/services/tunnelbroker/src/libcpp/src/Tools/ConfigManager.h
@@ -28,6 +28,7 @@
static const std::string OPTION_NOTIFS_FCM_SERVER_KEY;
static const std::string OPTION_SESSIONS_SKIP_AUTH_KEY;
static const std::string OPTION_DISABLE_DEVICEID_VALIDATION;
+ static const std::string OPTION_MESSAGES_SKIP_PERSISTENCE;
static ConfigManager &getInstance();
void load();
diff --git a/services/tunnelbroker/src/libcpp/src/Tools/ConfigManager.cpp b/services/tunnelbroker/src/libcpp/src/Tools/ConfigManager.cpp
--- a/services/tunnelbroker/src/libcpp/src/Tools/ConfigManager.cpp
+++ b/services/tunnelbroker/src/libcpp/src/Tools/ConfigManager.cpp
@@ -35,6 +35,8 @@
"sessions.skip_authentication";
const std::string ConfigManager::OPTION_DISABLE_DEVICEID_VALIDATION =
"sessions.disable_deviceid_validation";
+const std::string ConfigManager::OPTION_MESSAGES_SKIP_PERSISTENCE =
+ "messages.skip_persistence";
ConfigManager &ConfigManager::getInstance() {
static ConfigManager instance;
@@ -126,6 +128,11 @@
boost::program_options::value<bool>()->default_value(false),
"Disable deviceID format validation");
+ description.add_options()(
+ this->OPTION_MESSAGES_SKIP_PERSISTENCE.c_str(),
+ boost::program_options::value<bool>()->default_value(false),
+ "Disable messages persistence in DynamoDB database");
+
boost::program_options::parsed_options parsedDescription =
boost::program_options::parse_config_file(
fileStream, description, true);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 19, 3:44 PM (20 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2677859
Default Alt Text
D6622.diff (1 KB)
Attached To
Mode
D6622: [services] Tunnelbroker - Disable messages persistence config parameter
Attached
Detach File
Event Timeline
Log In to Comment