Lines Matching defs:accounts
119 int accounts, branches, tellers, history;
125 accounts = branches = history = tellers = 0;
136 if ((accounts = atoi(argv[++i])) <= 0)
193 accounts = accounts == 0 ? ACCOUNTS : accounts;
199 cout << (long)accounts << " Accounts, "
214 app.populate(accounts, branches, history, tellers);
219 app.run(ntxns, accounts, branches, tellers);
242 cerr << "usage: TpcbExample [-fiv] [-a accounts] [-b branches]\n"
268 // Initialize the database to the specified number of accounts, branches,
272 TpcbExample::populate(int accounts, int branches, int history, int tellers)
285 dbp->set_h_nelem((unsigned int)accounts);
294 populateTable(dbp, idnum, balance, accounts, "account");
295 idnum += accounts;
303 cout << "Populated accounts: "
371 populateHistory(dbp, history, accounts, branches, tellers);
405 TpcbExample::populateHistory(Db *dbp, int nrecs, u_int32_t accounts,
417 hrec.aid = random_id(ACCOUNT, accounts, branches, tellers);
418 hrec.bid = random_id(BRANCH, accounts, branches, tellers);
419 hrec.tid = random_id(TELLER, accounts, branches, tellers);
445 random_id(FTYPE type, u_int32_t accounts, u_int32_t branches, u_int32_t tellers)
450 num = accounts;
459 min += accounts;
468 TpcbExample::run(int n, int accounts, int branches, int tellers)
510 accounts, branches, tellers)) != 0)
532 int accounts, int branches, int tellers)
553 account = random_id(ACCOUNT, accounts, branches, tellers);
554 branch = random_id(BRANCH, accounts, branches, tellers);
555 teller = random_id(TELLER, accounts, branches, tellers);