Properly handle configurations where use_tx_tables = 0

This commit is contained in:
cdy20
2021-04-08 20:38:58 -04:00
committed by Nik Bougalis
parent 3be668b343
commit 2a298469be
3 changed files with 721 additions and 452 deletions

View File

@@ -277,7 +277,11 @@ getTxHistory(
* @param j Journal.
* @return Vector of pairs of found transactions and their metadata
* sorted in ascending order by account sequence.
* Also number of transactions processed.
* Also number of transactions processed or skpiied.
* If this number is >= 0, then it means number of transactions
* processed, if it is < 0, then ~number means number of transactions
* skipped. We need to skip some quantity of transactions if option
* offset is > 0 in the options structure.
*/
std::pair<RelationalDBInterface::AccountTxs, int>
getOldestAccountTxs(
@@ -304,7 +308,11 @@ getOldestAccountTxs(
* @param j Journal.
* @return Vector of pairs of found transactions and their metadata
* sorted in descending order by account sequence.
* Also number of transactions processed.
* Also number of transactions processed or skipped.
* If this number is >= 0, then it means number of transactions
* processed, if it is < 0, then ~number means number of transactions
* skipped. We need to skip some quantity of transactions if option
* offset is > 0 in the options structure.
*/
std::pair<RelationalDBInterface::AccountTxs, int>
getNewestAccountTxs(
@@ -331,7 +339,11 @@ getNewestAccountTxs(
* @param j Journal.
* @return Vector of tuples of found transactions, their metadata and
* account sequences sorted in ascending order by account
* sequence. Also number of transactions processed.
* sequence. Also number of transactions processed or skpiied.
* If this number is >= 0, then it means number of transactions
* processed, if it is < 0, then ~number means number of transactions
* skipped. We need to skip some quantity of transactions if option
* offset is > 0 in the options structure.
*/
std::pair<std::vector<RelationalDBInterface::txnMetaLedgerType>, int>
getOldestAccountTxsB(
@@ -357,7 +369,11 @@ getOldestAccountTxsB(
* @param j Journal.
* @return Vector of tuples of found transactions, their metadata and
* account sequences sorted in descending order by account
* sequence. Also number of transactions processed.
* sequence. Also number of transactions processed or skpiied.
* If this number is >= 0, then it means number of transactions
* processed, if it is < 0, then ~number means number of transactions
* skipped. We need to skip some quantity of transactions if option
* offset is > 0 in the options structure.
*/
std::pair<std::vector<RelationalDBInterface::txnMetaLedgerType>, int>
getNewestAccountTxsB(

File diff suppressed because it is too large Load Diff

View File

@@ -798,7 +798,11 @@ transactionsSQL(
* @param j Journal.
* @return Vector of pairs of found transactions and its metadata
* sorted in given order by account sequence.
* Also number of transactions processed.
* Also the number of transactions processed or skipped.
* If this number is >= 0, then it means number of transactions
* processed, if it is < 0, then ~number means number of transactions
* skipped. We need to skip some quantity of transactions if option
* offset is > 0 in the options structure.
*/
static std::pair<RelationalDBInterface::AccountTxs, int>
getAccountTxs(
@@ -937,7 +941,11 @@ getNewestAccountTxs(
* @param j Journal.
* @return Vector of tuples of found transactions, its metadata and
* account sequences sorted in given order by account
* sequence. Also number of transactions processed.
* sequence. Also number of transactions processed or skipped.
* If this number is >= 0, then it means number of transactions
* processed, if it is < 0, then ~number means number of transactions
* skipped. We need to skip some quantity of transactions if option
* offset is > 0 in the options structure.
*/
static std::pair<std::vector<RelationalDBInterface::txnMetaLedgerType>, int>
getAccountTxsB(