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