diff options
author | unknown <jonas@perch.ndb.mysql.com> | 2007-09-28 09:58:56 +0200 |
---|---|---|
committer | unknown <jonas@perch.ndb.mysql.com> | 2007-09-28 09:58:56 +0200 |
commit | 9e54eeee2e4ae2e0dd64b1eda30dcc38abf1580c (patch) | |
tree | 0c00379041ae776d836ca7976b8199fcef44ae63 /storage/ndb/test/include | |
parent | f15444833eb9116821aae40e18540e9fe73bc837 (diff) | |
download | mariadb-git-9e54eeee2e4ae2e0dd64b1eda30dcc38abf1580c.tar.gz |
ndb - add new testcases/error insert bug#30975
(recommit for correct merge order)
storage/ndb/src/kernel/blocks/ERROR_codes.txt:
new error code
storage/ndb/src/kernel/blocks/cmvmi/Cmvmi.cpp:
add error inserts
storage/ndb/src/kernel/blocks/dbtc/DbtcMain.cpp:
add error insert
storage/ndb/src/kernel/blocks/pgman.cpp:
add error inserts
storage/ndb/test/include/HugoTransactions.hpp:
add
- loadTableStartFrom
- scanUpdate with scanflags
- fillTableStartFrom
storage/ndb/test/include/UtilTransactions.hpp:
add
- clearTable with scan flags
storage/ndb/test/ndbapi/testSystemRestart.cpp:
add new testcases
storage/ndb/test/run-test/daily-basic-tests.txt:
add new testcases
storage/ndb/test/src/HugoTransactions.cpp:
add new functions
storage/ndb/test/src/UtilTransactions.cpp:
add new functions
Diffstat (limited to 'storage/ndb/test/include')
-rw-r--r-- | storage/ndb/test/include/HugoTransactions.hpp | 18 | ||||
-rw-r--r-- | storage/ndb/test/include/UtilTransactions.hpp | 5 |
2 files changed, 23 insertions, 0 deletions
diff --git a/storage/ndb/test/include/HugoTransactions.hpp b/storage/ndb/test/include/HugoTransactions.hpp index e2b12f261a8..e8f7b33e0ed 100644 --- a/storage/ndb/test/include/HugoTransactions.hpp +++ b/storage/ndb/test/include/HugoTransactions.hpp @@ -36,6 +36,16 @@ public: int updateValue = 0, bool abort = false); + int loadTableStartFrom(Ndb*, + int startFrom, + int records, + int batch = 512, + bool allowConstraintViolation = true, + int doSleep = 0, + bool oneTrans = false, + int updateValue = 0, + bool abort = false); + int scanReadRecords(Ndb*, int records, int abort = 0, @@ -56,6 +66,11 @@ public: int batchsize = 1, NdbOperation::LockMode = NdbOperation::LM_Read); + int scanUpdateRecords(Ndb*, NdbScanOperation::ScanFlag, + int records, + int abort = 0, + int parallelism = 0); + int scanUpdateRecords(Ndb*, int records, int abort = 0, @@ -90,9 +105,12 @@ public: int records, int percentToLock = 1, int lockTime = 1000); + int fillTable(Ndb*, int batch=512); + int fillTableStartFrom(Ndb*, int startFrom, int batch=512); + /** * Reading using UniqHashIndex with key = pk */ diff --git a/storage/ndb/test/include/UtilTransactions.hpp b/storage/ndb/test/include/UtilTransactions.hpp index 75bbcd9c776..193398c3da2 100644 --- a/storage/ndb/test/include/UtilTransactions.hpp +++ b/storage/ndb/test/include/UtilTransactions.hpp @@ -30,6 +30,11 @@ public: int closeTransaction(Ndb*); int clearTable(Ndb*, + NdbScanOperation::ScanFlag, + int records = 0, + int parallelism = 0); + + int clearTable(Ndb*, int records = 0, int parallelism = 0); |