mirror of
https://github.com/XRPLF/rippled.git
synced 2026-01-10 01:35:26 +00:00
Compare commits
2 Commits
ripple/was
...
pratik/Add
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
640428a1d4 | ||
|
|
0363c12b23 |
@@ -196,10 +196,16 @@ private:
|
||||
* @brief checkoutTransaction Checks out and returns node store ledger
|
||||
* database.
|
||||
* @return Session to the node store ledger database.
|
||||
* @throws std::runtime_error if ledger database is not available.
|
||||
*/
|
||||
auto
|
||||
checkoutLedger()
|
||||
{
|
||||
if (!lgrdb_)
|
||||
{
|
||||
JLOG(j_.fatal()) << "Ledger database is not available";
|
||||
Throw<std::runtime_error>("Ledger database is not available");
|
||||
}
|
||||
return lgrdb_->checkoutDb();
|
||||
}
|
||||
|
||||
@@ -207,10 +213,16 @@ private:
|
||||
* @brief checkoutTransaction Checks out and returns the node store
|
||||
* transaction database.
|
||||
* @return Session to the node store transaction database.
|
||||
* @throws std::runtime_error if transaction database is not available.
|
||||
*/
|
||||
auto
|
||||
checkoutTransaction()
|
||||
{
|
||||
if (!txdb_)
|
||||
{
|
||||
JLOG(j_.fatal()) << "Transaction database is not available";
|
||||
Throw<std::runtime_error>("Transaction database is not available");
|
||||
}
|
||||
return txdb_->checkoutDb();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user