mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Use soci in more places:
* Validator, peerfinder, SHAMapStore, RpcDB, TxnDB, LedgerDB, WalletDB use soci backend.
This commit is contained in:
@@ -49,17 +49,17 @@ Json::Value doGetCounts (RPC::Context& context)
|
||||
|
||||
Application& app = getApp();
|
||||
|
||||
int dbKB = app.getLedgerDB ().getDB ()->getKBUsedAll ();
|
||||
int dbKB = getKBUsedAll (app.getLedgerDB ().getSession ());
|
||||
|
||||
if (dbKB > 0)
|
||||
ret[jss::dbKBTotal] = dbKB;
|
||||
|
||||
dbKB = app.getLedgerDB ().getDB ()->getKBUsedDB ();
|
||||
dbKB = getKBUsedDB (app.getLedgerDB ().getSession ());
|
||||
|
||||
if (dbKB > 0)
|
||||
ret[jss::dbKBLedger] = dbKB;
|
||||
|
||||
dbKB = app.getTxnDB ().getDB ()->getKBUsedDB ();
|
||||
dbKB = getKBUsedDB (app.getTxnDB ().getSession ());
|
||||
|
||||
if (dbKB > 0)
|
||||
ret[jss::dbKBTransaction] = dbKB;
|
||||
|
||||
Reference in New Issue
Block a user