MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ndbd_exit_codes.h
1 /*
2  Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
3 
4  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; version 2 of the License.
7 
8  This program is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  GNU General Public License for more details.
12 
13  You should have received a copy of the GNU General Public License
14  along with this program; if not, write to the Free Software
15  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
16 */
17 
18 #ifndef NDBD_EXIT_CODES_H
19 #define NDBD_EXIT_CODES_H
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
25 #ifndef DOXYGEN_SHOULD_SKIP_INTERNAL
26 
42 typedef enum
43 {
44  ndbd_exit_st_success = 0,
45  ndbd_exit_st_unknown = 1,
46  ndbd_exit_st_permanent = 2,
47  ndbd_exit_st_temporary = 3,
48  ndbd_exit_st_filesystem_error = 4
49 } ndbd_exit_status_enum;
50 
51 typedef enum
52 {
53  ndbd_exit_cl_none = 0,
54  ndbd_exit_cl_unknown = 1,
55  ndbd_exit_cl_internal_error = 2,
56  ndbd_exit_cl_configuration_error = 3,
57  ndbd_exit_cl_arbitration_error = 4,
58  ndbd_exit_cl_restart_error = 5,
59  ndbd_exit_cl_resource_configuration_error = 6,
60  ndbd_exit_cl_filesystem_full_error = 7,
61  ndbd_exit_cl_filesystem_inconsistency_error = 8,
62  ndbd_exit_cl_filesystem_limit = 9
63 } ndbd_exit_classification_enum;
64 
65 typedef ndbd_exit_status_enum ndbd_exit_status;
66 typedef ndbd_exit_classification_enum ndbd_exit_classification;
67 
68 /* Errorcodes before block division was used */
69 #define NDBD_EXIT_GENERIC 2300
70 #define NDBD_EXIT_PRGERR 2301
71 #define NDBD_EXIT_NODE_NOT_IN_CONFIG 2302
72 #define NDBD_EXIT_SYSTEM_ERROR 2303
73 #define NDBD_EXIT_INDEX_NOTINRANGE 2304
74 #define NDBD_EXIT_ARBIT_SHUTDOWN 2305
75 #define NDBD_EXIT_POINTER_NOTINRANGE 2306
76 #define NDBD_EXIT_PARTITIONED_SHUTDOWN 2307
77 #define NDBD_EXIT_SR_OTHERNODEFAILED 2308
78 #define NDBD_EXIT_NODE_NOT_DEAD 2309
79 #define NDBD_EXIT_SR_REDOLOG 2310
80 #define NDBD_EXIT_SR_RESTARTCONFLICT 2311
81 #define NDBD_EXIT_NO_MORE_UNDOLOG 2312
82 #define NDBD_EXIT_SR_UNDOLOG 2313
83 #define NDBD_EXIT_SINGLE_USER_MODE 2314
84 #define NDBD_EXIT_NODE_DECLARED_DEAD 2315
85 #define NDBD_EXIT_SR_SCHEMAFILE 2316
86 #define NDBD_EXIT_MEMALLOC 2327
87 #define NDBD_EXIT_BLOCK_JBUFCONGESTION 2334
88 #define NDBD_EXIT_TIME_QUEUE_SHORT 2335
89 #define NDBD_EXIT_TIME_QUEUE_LONG 2336
90 #define NDBD_EXIT_TIME_QUEUE_DELAY 2337
91 #define NDBD_EXIT_TIME_QUEUE_INDEX 2338
92 #define NDBD_EXIT_BLOCK_BNR_ZERO 2339
93 #define NDBD_EXIT_WRONG_PRIO_LEVEL 2340
94 #define NDBD_EXIT_NDBREQUIRE 2341
95 #define NDBD_EXIT_ERROR_INSERT 2342
96 #define NDBD_EXIT_NDBASSERT 2343
97 #define NDBD_EXIT_INVALID_CONFIG 2350
98 #define NDBD_EXIT_OUT_OF_LONG_SIGNAL_MEMORY 2351
99 #define NDBD_EXIT_NO_MORE_REDOLOG 2354
100 
101 /* Errorcodes for fatal resource errors */
102 #define NDBD_EXIT_RESOURCE_ALLOC_ERROR 2500
103 
104 #define NDBD_EXIT_OS_SIGNAL_RECEIVED 6000
105 
106 /* VM 6050-> */
107 #define NDBD_EXIT_WATCHDOG_TERMINATE 6050
108 #define NDBD_EXIT_SIGNAL_LOST 6051
109 #define NDBD_EXIT_SIGNAL_LOST_SEND_BUFFER_FULL 6052
110 #define NDBD_EXIT_ILLEGAL_SIGNAL 6053
111 #define NDBD_EXIT_CONNECTION_SETUP_FAILED 6054
112 
113 /* NDBCNTR 6100-> */
114 #define NDBD_EXIT_RESTART_TIMEOUT 6100
115 #define NDBD_EXIT_RESTART_DURING_SHUTDOWN 6101
116 
117 /* TC 6200-> */
118 /* DIH 6300-> */
119 #define NDBD_EXIT_MAX_CRASHED_REPLICAS 6300
120 #define NDBD_EXIT_MASTER_FAILURE_DURING_NR 6301
121 #define NDBD_EXIT_LOST_NODE_GROUP 6302
122 #define NDBD_EXIT_NO_RESTORABLE_REPLICA 6303
123 #define NDBD_EXIT_UNSUPPORTED_VERSION 6304
124 
125 #define NDBD_EXIT_GRACEFUL_SHUTDOWN_ERROR 6305
126 
127 /* ACC 6600-> */
128 #define NDBD_EXIT_SR_OUT_OF_INDEXMEMORY 6600
129 /* TUP 6800-> */
130 #define NDBD_EXIT_SR_OUT_OF_DATAMEMORY 6800
131 /* LQH 7200-> */
132 
133 
134 /* Errorcodes for NDB filesystem */
135 #define NDBD_EXIT_AFS_NOPATH 2801
136 /*
137 #define NDBD_EXIT_AFS_CHANNALFULL 2802
138 #define NDBD_EXIT_AFS_NOMORETHREADS 2803
139 */
140 #define NDBD_EXIT_AFS_PARAMETER 2804
141 #define NDBD_EXIT_AFS_INVALIDPATH 2805
142 #define NDBD_EXIT_AFS_MAXOPEN 2806
143 #define NDBD_EXIT_AFS_ALREADY_OPEN 2807
144 
145 #define NDBD_EXIT_AFS_ENVIRONMENT 2808
146 #define NDBD_EXIT_AFS_TEMP_NO_ACCESS 2809
147 #define NDBD_EXIT_AFS_DISK_FULL 2810
148 #define NDBD_EXIT_AFS_PERMISSION_DENIED 2811
149 #define NDBD_EXIT_AFS_INVALID_PARAM 2812
150 #define NDBD_EXIT_AFS_UNKNOWN 2813
151 #define NDBD_EXIT_AFS_NO_MORE_RESOURCES 2814
152 #define NDBD_EXIT_AFS_NO_SUCH_FILE 2815
153 #define NDBD_EXIT_AFS_READ_UNDERFLOW 2816
154 
155 #define NDBD_EXIT_INVALID_LCP_FILE 2352
156 #define NDBD_EXIT_INSUFFICENT_NODES 2353
157 #define NDBD_EXIT_RESTORE_SCHEMA 2355
158 
159 const char *
160 ndbd_exit_message(int faultId, ndbd_exit_classification *cl);
161 const char *
162 ndbd_exit_classification_message(ndbd_exit_classification classification,
163  ndbd_exit_status *status);
164 const char *
165 ndbd_exit_status_message(ndbd_exit_status status);
166 
167 #endif
168 
169 #ifdef __cplusplus
170 }
171 #endif
172 
173 #endif /* NDBD_EXIT_CODES_H */