Compare commits

...

3 Commits

Author SHA1 Message Date
Vinnie Falco
2678360715 Set version to 0.19.0 2013-11-22 23:39:12 -08:00
JoelKatz
54e504dd5a Make --import work 2013-11-22 23:39:07 -08:00
JoelKatz
b632a6b2cf If the RocksDB base file size is changed, change the write cache and L0 size to match 2013-11-22 23:39:02 -08:00
6 changed files with 7 additions and 5 deletions

View File

@@ -1225,7 +1225,7 @@ void ApplicationImp::updateTables ()
exit (1);
}
if (getConfig ().importNodeDatabase.size () > 0)
if (getConfig ().doImport)
{
NodeStore::DummyScheduler scheduler;
ScopedPointer <NodeStore::Database> source (NodeStore::Database::New (

View File

@@ -407,9 +407,7 @@ int RippleMain::run (int argc, char const* const* argv)
//
if (vm.count ("import"))
{
String const optionString (vm ["import"].as <std::string> ());
getConfig ().importNodeDatabase = parseDelimitedKeyValueString (optionString);
getConfig ().doImport = true;
}
if (vm.count ("ledger"))

View File

@@ -108,6 +108,7 @@ Config::Config ()
ELB_SUPPORT = false;
RUN_STANDALONE = false;
doImport = false;
START_UP = NORMAL;
}

View File

@@ -325,6 +325,7 @@ public:
<key>'='<value>['|'<key>'='value]
@see parseDelimitedKeyValueString
*/
bool doImport;
StringPairArray importNodeDatabase;
//

View File

@@ -125,6 +125,8 @@ public:
if (! keyValues["file_size_mb"].isEmpty())
{
options.target_file_size_base = 1024 * 1024 * keyValues["file_size_mb"].getIntValue();
options.max_bytes_for_level_base = 5 * options.target_file_size_base;
options.write_buffer_size = 2 * options.target_file_size_base;
}
if (! keyValues["file_size_mult"].isEmpty())

View File

@@ -25,7 +25,7 @@ char const* BuildInfo::getRawVersionString ()
//
// The build version number (edit this for each release)
//
"0.18.0"
"0.19.0"
//
// Must follow the format described here:
//