mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Fix creating rocksdb cache (#989)
Co-authored-by: SpyCheese <mikle98@yandex.ru>
This commit is contained in:
parent
1433f23eff
commit
c7fd75ce56
4 changed files with 11 additions and 5 deletions
|
@ -24,6 +24,7 @@
|
|||
|
||||
#include "td/db/KeyValue.h"
|
||||
#include "td/utils/Status.h"
|
||||
#include "td/utils/optional.h"
|
||||
|
||||
namespace rocksdb {
|
||||
class OptimisticTransactionDB;
|
||||
|
@ -37,7 +38,7 @@ namespace td {
|
|||
|
||||
struct RocksDbOptions {
|
||||
std::shared_ptr<rocksdb::Statistics> statistics = nullptr;
|
||||
uint64 block_cache_size = 1 << 30;
|
||||
optional<uint64> block_cache_size; // Default - one 1G cache for all RocksDb
|
||||
};
|
||||
|
||||
class RocksDb : public KeyValue {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue