CreateFrag.hpp
上传用户:romrleung
上传日期:2022-05-23
资源大小:18897k
文件大小:1k
源码类别:

MySQL数据库

开发平台:

Visual C++

  1. /* Copyright (C) 2003 MySQL AB
  2.    This program is free software; you can redistribute it and/or modify
  3.    it under the terms of the GNU General Public License as published by
  4.    the Free Software Foundation; either version 2 of the License, or
  5.    (at your option) any later version.
  6.    This program is distributed in the hope that it will be useful,
  7.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  8.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  9.    GNU General Public License for more details.
  10.    You should have received a copy of the GNU General Public License
  11.    along with this program; if not, write to the Free Software
  12.    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
  13. #ifndef CREATE_FRAG_HPP
  14. #define CREATE_FRAG_HPP
  15. class CreateFragReq {
  16.   /**
  17.    * Sender(s) / Reciver(s)
  18.    */
  19.   friend class Dbdih;
  20.   
  21. public:
  22.   STATIC_CONST( SignalLength = 8 );
  23.   enum ReplicaType {
  24.     STORED = 7,
  25.     COMMIT_STORED = 9
  26.   };
  27. private:
  28.   Uint32 userPtr;
  29.   BlockReference userRef;
  30.   Uint32 tableId;
  31.   Uint32 fragId;
  32.   Uint32 startingNodeId;
  33.   Uint32 copyNodeId;
  34.   Uint32 startGci;
  35.   Uint32 replicaType;
  36. };
  37. class CreateFragConf {
  38.   /**
  39.    * Sender(s) / Reciver(s)
  40.    */
  41.   friend class Dbdih;
  42.   
  43. public:
  44.   STATIC_CONST( SignalLength = 5 );
  45. private:
  46.   
  47.   Uint32 userPtr;
  48.   Uint32 tableId;
  49.   Uint32 fragId;
  50.   Uint32 sendingNodeId;
  51.   Uint32 startingNodeId;
  52. };
  53. #endif