~ubuntu-branches/ubuntu/trusty/mysql-5.6/trusty

« back to all changes in this revision

Viewing changes to storage/ndb/test/ndbapi/bench/testDefinitions.h

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2014-02-12 11:54:27 UTC
  • Revision ID: package-import@ubuntu.com-20140212115427-oq6tfsqxl1wuwehi
Tags: upstream-5.6.15
ImportĀ upstreamĀ versionĀ 5.6.15

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
   Copyright (C) 2005, 2006 MySQL AB
 
3
    All rights reserved. Use is subject to license terms.
 
4
 
 
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.
 
8
 
 
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.
 
13
 
 
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
 
17
*/
 
18
 
 
19
#ifndef TESTDEFINITIONS_H
 
20
#define TESTDEFINITIONS_H
 
21
 
 
22
/***************************************************************/
 
23
/* I N C L U D E D   F I L E S                                 */
 
24
/***************************************************************/
 
25
 
 
26
#include <ndb_types.h>
 
27
 
 
28
/***************************************************************/
 
29
/* C O N S T A N T S                                           */
 
30
/***************************************************************/
 
31
 
 
32
#define OP_PER_TRANS                  200
 
33
#define NO_OF_SUBSCRIBERS             500000
 
34
#define NO_OF_GROUPS                     100
 
35
#define NO_OF_SERVERS                     20
 
36
 
 
37
#define SUBSCRIBER_NUMBER_LENGTH          12
 
38
#define SUBSCRIBER_NUMBER_SUFFIX_LENGTH    2
 
39
 
 
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
 
46
 
 
47
/***************************************************************
 
48
* D A T A   S T R U C T U R E S                                *
 
49
***************************************************************/
 
50
 
 
51
#define PADDING 4
 
52
 
 
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;
 
66
 
 
67
typedef Uint32 Counter;
 
68
typedef Uint32 ActiveSessions;
 
69
typedef unsigned int BranchExecuted;
 
70
typedef unsigned int DoRollback;
 
71
 
 
72
/***************************************************************
 
73
* P U B L I C    F U N C T I O N S                             *
 
74
***************************************************************/
 
75
 
 
76
#ifdef __cplusplus
 
77
extern "C" {
 
78
#endif
 
79
 
 
80
 
 
81
#ifdef __cplusplus
 
82
}
 
83
#endif
 
84
 
 
85
/***************************************************************
 
86
* E X T E R N A L   D A T A                                    *
 
87
***************************************************************/
 
88
 
 
89
 
 
90
 
 
91
#endif /* TESTDEFINITIONS_H */
 
92