26 #include <NdbThread.h>
27 #include <NDBT_Stats.hpp>
29 #include "testDefinitions.h"
39 #define NUM_TRANSACTION_TYPES 5
40 #define SESSION_LIST_LENGTH 1000
47 SubscriberNumber subscriberNumber;
53 unsigned int readIndex;
54 unsigned int writeIndex;
55 unsigned int numberInList;
60 unsigned int branchExecuted;
61 unsigned int rollbackExecuted;
68 unsigned int latencyCounter;
70 inline void startLatency(){
71 if((latencyCounter & 127) == 127)
72 startTime = NdbTick_CurrentMillisecond();
75 inline void stopLatency(){
76 if((latencyCounter & 127) == 127){
77 const NDB_TICKS tmp = NdbTick_CurrentMillisecond() - startTime;
78 latency.addObservation((
double)tmp);
91 unsigned int totalTransactions;
106 SubscriberNumber number;
107 SubscriberSuffix suffix;
110 ChangedBy changed_by;
111 ChangedTime changed_time;
113 ServerBit server_bit;
114 SessionDetails session_details;
117 ActiveSessions sessions;
118 Permission permission;
120 unsigned int do_rollback;
122 unsigned int branchExecuted;
123 unsigned int sessionElement;
127 const class NdbRecord* subscriberTableNdbRecord;
128 const class NdbRecord* groupTableAllowReadNdbRecord;
129 const class NdbRecord* groupTableAllowInsertNdbRecord;
130 const class NdbRecord* groupTableAllowDeleteNdbRecord;
131 const class NdbRecord* sessionTableNdbRecord;
135 const class NdbRecord* serverTableNdbRecord;
141 unsigned long randomSeed;
142 unsigned long changedTime;
144 unsigned int warmUpSeconds;
145 unsigned int testSeconds;
146 unsigned int coolDownSeconds;
158 bool useCombinedUpdate;