Expose Utility function StringToMap() (#1306)

This commit is contained in:
Sherlock 2016-09-01 13:47:21 -07:00 committed by Islam AbdelRahman
parent 8ce1b8440a
commit 85bb308258

View File

@ -305,6 +305,9 @@ Status GetMemTableRepFactoryFromString(
Status GetOptionsFromString(const Options& base_options, Status GetOptionsFromString(const Options& base_options,
const std::string& opts_str, Options* new_options); const std::string& opts_str, Options* new_options);
Status StringToMap(const std::string& opts_str,
std::unordered_map<std::string, std::string>* opts_map);
// Request stopping background work, if wait is true wait until it's done // Request stopping background work, if wait is true wait until it's done
void CancelAllBackgroundWork(DB* db, bool wait = false); void CancelAllBackgroundWork(DB* db, bool wait = false);