MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RestoreImpl.hpp
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 RESTORE_SIGNAL_DATA_HPP
20 #define RESTORE_SIGNAL_DATA_HPP
21 
22 #include "SignalData.hpp"
23 
25 {
26  Uint32 senderData;
27  Uint32 senderRef;
28  Uint32 lcpNo;
29  Uint32 tableId;
30  Uint32 fragmentId;
31  Uint32 lcpId;
32  STATIC_CONST( SignalLength = 6 );
33 };
34 
36 {
37  Uint32 senderData;
38  Uint32 senderRef;
39  Uint32 errorCode;
40  Uint32 extra[1];
41  STATIC_CONST( SignalLength = 3 );
42 
43  enum ErrorCode
44  {
45  OK = 0,
46  NoFileRecord = 1,
47  OutOfDataBuffer = 2,
48  OutOfReadBufferPages = 3,
49  InvalidFileFormat = 4
50  };
51 };
52 
54 {
55  Uint32 senderData;
56  Uint32 senderRef;
57  STATIC_CONST( SignalLength = 2 );
58 };
59 
60 struct RestoreContinueB {
61 
62  enum {
63  RESTORE_NEXT = 0,
64  READ_FILE = 1
65  };
66 };
67 
68 #endif