mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Tidy up includes and add modules to the classic build:
An alternative to the unity build, the classic build compiles each translation unit individually. This adds more modules to the classic build: * Remove unity header app.h * Add missing includes as needed * Remove obsolete NodeStore backend code * Add app/, core/, crypto/, json/, net/, overlay/, peerfinder/ to classic build
This commit is contained in:
@@ -17,6 +17,10 @@
|
||||
*/
|
||||
//==============================================================================
|
||||
|
||||
#include <BeastConfig.h>
|
||||
|
||||
#include <ripple/unity/rocksdb.h>
|
||||
|
||||
#if RIPPLE_ROCKSDB_AVAILABLE
|
||||
|
||||
#include <ripple/core/Config.h> // VFALCO Bad dependency
|
||||
@@ -361,18 +365,10 @@ public:
|
||||
class RocksDBFactory : public Factory
|
||||
{
|
||||
public:
|
||||
std::shared_ptr <rocksdb::Cache> m_lruCache;
|
||||
RocksDBEnv m_env;
|
||||
|
||||
RocksDBFactory ()
|
||||
{
|
||||
rocksdb::BlockBasedTableOptions table_options;
|
||||
|
||||
table_options.block_cache = rocksdb::NewLRUCache (
|
||||
getConfig ().getSize (siHashNodeDBCache) * 1024 * 1024);
|
||||
|
||||
m_lruCache = table_options.block_cache;
|
||||
|
||||
Manager::instance().insert(*this);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user