mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Test prg update
- make test node restart test harder ndb/src/kernel/blocks/dbtc/DbtcMain.cpp: Removed debug printout ndb/test/include/HugoOperations.hpp: Remove multipl pkRead (simple/dirty)... and replace with pkRead(LockMode) ndb/test/include/HugoTransactions.hpp: Remove multipl pkRead (simple/dirty)... and replace with pkRead(LockMode) ndb/test/ndbapi/testBasic.cpp: Remove multipl pkRead (simple/dirty)... and replace with pkRead(LockMode) ndb/test/ndbapi/testNdbApi.cpp: Remove multipl pkRead (simple/dirty)... and replace with pkRead(LockMode) ndb/test/ndbapi/testNodeRestart.cpp: Use mixed pkread Use rand() no of records Use rand() batch size Restart node abort (instead of graceful) ndb/test/ndbapi/testOperations.cpp: Remove multipl pkRead (simple/dirty)... and replace with pkRead(LockMode) ndb/test/ndbapi/testTransactions.cpp: Remove multipl pkRead (simple/dirty)... and replace with pkRead(LockMode) ndb/test/run-test/daily-devel-tests.txt: Run mixed pkread tests instead of just LM_Read (readTuple()) ndb/test/src/HugoOperations.cpp: Remove multipl pkRead (simple/dirty)... and replace with pkRead(LockMode) ndb/test/src/HugoTransactions.cpp: Remove multipl pkRead (simple/dirty)... and replace with pkRead(LockMode)
This commit is contained in:
@ -190,13 +190,13 @@ runOp(HugoOperations & hugoOps,
|
||||
return NDBT_FAILED; }
|
||||
|
||||
if(strcmp(op, "READ") == 0){
|
||||
C2(hugoOps.pkReadRecord(pNdb, 1, false, 1) == 0);
|
||||
C2(hugoOps.pkReadRecord(pNdb, 1, 1, NdbOperation::LM_Read) == 0);
|
||||
} else if(strcmp(op, "READ-EX") == 0){
|
||||
C2(hugoOps.pkReadRecord(pNdb, 1, true, 1) == 0);
|
||||
C2(hugoOps.pkReadRecord(pNdb, 1, 1, NdbOperation::LM_Exclusive) == 0);
|
||||
} else if(strcmp(op, "S-READ") == 0){
|
||||
C2(hugoOps.pkSimpleReadRecord(pNdb, 1, 1) == 0);
|
||||
C2(hugoOps.pkReadRecord(pNdb, 1, 1, NdbOperation::LM_Read) == 0);
|
||||
} else if(strcmp(op, "D-READ") == 0){
|
||||
C2(hugoOps.pkDirtyReadRecord(pNdb, 1, 1) == 0);
|
||||
C2(hugoOps.pkReadRecord(pNdb, 1, 1, NdbOperation::LM_CommittedRead) == 0);
|
||||
} else if(strcmp(op, "INSERT") == 0){
|
||||
C2(hugoOps.pkInsertRecord(pNdb, 1, 1, value) == 0);
|
||||
} else if(strcmp(op, "UPDATE") == 0){
|
||||
|
Reference in New Issue
Block a user