mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Implement Shard SQLite support
This commit is contained in:
committed by
Nik Bougalis
parent
008fc5155a
commit
66fad62e66
@@ -254,7 +254,7 @@ SHAMapStoreImp::makeNodeStore(std::string const& name, std::int32_t readThreads)
|
||||
std::move(archiveBackend),
|
||||
app_.config().section(ConfigSection::nodeDatabase()),
|
||||
app_.logs().journal(nodeStoreName_));
|
||||
fdlimit_ += dbr->fdlimit();
|
||||
fdRequired_ += dbr->fdRequired();
|
||||
dbRotating_ = dbr.get();
|
||||
db.reset(dynamic_cast<NodeStore::Database*>(dbr.release()));
|
||||
}
|
||||
@@ -267,7 +267,7 @@ SHAMapStoreImp::makeNodeStore(std::string const& name, std::int32_t readThreads)
|
||||
app_.getJobQueue(),
|
||||
app_.config().section(ConfigSection::nodeDatabase()),
|
||||
app_.logs().journal(nodeStoreName_));
|
||||
fdlimit_ += db->fdlimit();
|
||||
fdRequired_ += db->fdRequired();
|
||||
}
|
||||
return db;
|
||||
}
|
||||
@@ -298,9 +298,9 @@ SHAMapStoreImp::rendezvous() const
|
||||
}
|
||||
|
||||
int
|
||||
SHAMapStoreImp::fdlimit () const
|
||||
SHAMapStoreImp::fdRequired() const
|
||||
{
|
||||
return fdlimit_;
|
||||
return fdRequired_;
|
||||
}
|
||||
|
||||
bool
|
||||
|
||||
Reference in New Issue
Block a user