2
Copyright (C) 2005, 2006 MySQL AB
3
All rights reserved. Use is subject to license terms.
5
This program is free software; you can redistribute it and/or modify
6
it under the terms of the GNU General Public License as published by
7
the Free Software Foundation; version 2 of the License.
9
This program is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
GNU General Public License for more details.
14
You should have received a copy of the GNU General Public License
15
along with this program; if not, write to the Free Software
16
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19
#ifndef TESTDEFINITIONS_H
20
#define TESTDEFINITIONS_H
22
/***************************************************************/
23
/* I N C L U D E D F I L E S */
24
/***************************************************************/
26
#include <ndb_types.h>
28
/***************************************************************/
29
/* C O N S T A N T S */
30
/***************************************************************/
32
#define OP_PER_TRANS 200
33
#define NO_OF_SUBSCRIBERS 500000
34
#define NO_OF_GROUPS 100
35
#define NO_OF_SERVERS 20
37
#define SUBSCRIBER_NUMBER_LENGTH 12
38
#define SUBSCRIBER_NUMBER_SUFFIX_LENGTH 2
40
#define SUBSCRIBER_NAME_LENGTH 32
41
#define CHANGED_BY_LENGTH 32
42
#define CHANGED_TIME_LENGTH 32
43
#define SESSION_DETAILS_LENGTH 2000
44
#define SERVER_NAME_LENGTH 32
45
#define GROUP_NAME_LENGTH 32
47
/***************************************************************
48
* D A T A S T R U C T U R E S *
49
***************************************************************/
53
typedef char SubscriberNumber[SUBSCRIBER_NUMBER_LENGTH];
54
typedef char SubscriberSuffix[SUBSCRIBER_NUMBER_SUFFIX_LENGTH + 2];
55
typedef char SubscriberName[SUBSCRIBER_NAME_LENGTH];
56
typedef char ServerName[SERVER_NAME_LENGTH];
57
typedef char GroupName[GROUP_NAME_LENGTH];
58
typedef char ChangedBy[CHANGED_BY_LENGTH];
59
typedef char ChangedTime[CHANGED_TIME_LENGTH];
60
typedef char SessionDetails[SESSION_DETAILS_LENGTH];
61
typedef Uint32 ServerId;
62
typedef Uint32 ServerBit;
63
typedef Uint32 GroupId;
64
typedef Uint32 Location;
65
typedef Uint32 Permission;
67
typedef Uint32 Counter;
68
typedef Uint32 ActiveSessions;
69
typedef unsigned int BranchExecuted;
70
typedef unsigned int DoRollback;
72
/***************************************************************
73
* P U B L I C F U N C T I O N S *
74
***************************************************************/
85
/***************************************************************
86
* E X T E R N A L D A T A *
87
***************************************************************/
91
#endif /* TESTDEFINITIONS_H */