34 void setSkipCreate(
bool skip) { m_skip_create =
skip; }
35 int createAndLoadBank(
bool overWrite,
bool disk=
false,
int num_accounts=10);
38 int performTransactions(
int maxSleepBetweenTrans = 20,
int yield=0);
41 int performSumAccounts(
int maxSleepBetweenSums = 2000,
int yield=0);
42 int performIncreaseTime(
int maxSleepBetweenDays = 30,
int yield=0);
47 enum TransactionTypes{
52 static const int NOT_ENOUGH_FUNDS = 1000;
53 static const int VERIFICATION_FAILED = 1001;
55 int performTransaction();
56 int performTransaction(
int fromAccountId,
59 int performTransactionImpl1(
int fromAccountId,
63 int performValidateGLs(Uint64 age = 20);
64 int performValidateGL(Uint64 GLTime);
65 int performValidatePurged();
67 int performMakeGL(Uint64 time);
70 Uint32 accountTypeId);
71 int sumTransactionsForGL(
const Uint64 time,
72 const Uint32 accountType,
74 Uint32& withdrawalCount,
75 Uint32& withdrawalSum,
78 Uint32& transactionsCount,
80 int getBalanceForAccountType(
const Uint32 accountType,
82 int getBalanceForGL(
const Uint64 glTime,
83 const Uint32 accountType,
86 int checkNoTransactionsOlderThan(
const Uint32 accountType,
88 int getOldestPurgedGL(
const Uint32 accountType,
90 int getOldestNotPurgedGL(Uint64 &oldest,
91 Uint32 &accountTypeId,
93 int findLastGL(Uint64 &lastTime);
94 int purgeOldGLTransactions(Uint64 currTime, Uint32 age);
96 int purgeTransactions(
const Uint64 glTime,
97 const Uint32 accountTypeId);
98 int findTransactionsToPurge(
const Uint64 glTime,
99 const Uint32 accountType,
103 int getSumAccounts(Uint32 &sumAccounts,
104 Uint32 &numAccounts);
105 int getNumAccounts();
106 int getNumAccountTypes();
111 LastTransactionId = 0,
116 int readSystemValue(SystemValueId sysValId, Uint64 & value);
117 int increaseSystemValue(SystemValueId sysValId, Uint64 &value);
118 int increaseSystemValue2(SystemValueId sysValId, Uint64 &value);
119 int writeSystemValue(SystemValueId sysValId, Uint64 value);
120 int getNextTransactionId(Uint64 &value);
121 int incCurrTime(Uint64 &value);
122 int getCurrTime(Uint64 &time);
124 int prepareReadSystemValueOp(
NdbConnection*, SystemValueId sysValId, Uint64 &time);
127 int createTables(
bool disk);
128 int createTable(
const char* tabName,
bool disk);
131 int dropTable(
const char* tabName);
134 int clearTable(
const char* tabName);
137 int loadAccountType();
138 int loadAccount (
int numAccounts);
139 int loadSystemValues();