~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to storage/ndb/include/kernel/signaldata/NextScan.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Copyright (C) 2003 MySQL AB
 
2
 
 
3
   This program is free software; you can redistribute it and/or modify
 
4
   it under the terms of the GNU General Public License as published by
 
5
   the Free Software Foundation; version 2 of the License.
 
6
 
 
7
   This program is distributed in the hope that it will be useful,
 
8
   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
9
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
10
   GNU General Public License for more details.
 
11
 
 
12
   You should have received a copy of the GNU General Public License
 
13
   along with this program; if not, write to the Free Software
 
14
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
 
15
 
 
16
#ifndef NEXT_SCAN_HPP
 
17
#define NEXT_SCAN_HPP
 
18
 
 
19
#include "SignalData.hpp"
 
20
 
 
21
class NextScanReq {
 
22
  friend class Dblqh;
 
23
  friend class Dbacc;
 
24
  friend class Dbtux;
 
25
  friend class Dbtup;
 
26
public:
 
27
  // two sets of defs picked from lqh/acc
 
28
  enum ScanFlag {
 
29
    ZSCAN_NEXT = 1,
 
30
    ZSCAN_NEXT_COMMIT = 2,
 
31
    ZSCAN_COMMIT = 3,           // new
 
32
    ZSCAN_CLOSE = 6,
 
33
    ZSCAN_NEXT_ABORT = 12
 
34
  };
 
35
  STATIC_CONST( SignalLength = 3 );
 
36
private:
 
37
  Uint32 accPtr;                // scan record in ACC/TUX
 
38
  Uint32 accOperationPtr;
 
39
  Uint32 scanFlag;
 
40
};
 
41
 
 
42
class NextScanConf {
 
43
  friend class Dbacc;
 
44
  friend class Dbtux;
 
45
  friend class Dbtup;
 
46
  friend class Dblqh;
 
47
public:
 
48
  // length is less if no keyinfo or no next result
 
49
  STATIC_CONST( SignalLength = 11 );
 
50
private:
 
51
  Uint32 scanPtr;               // scan record in LQH
 
52
  Uint32 accOperationPtr;
 
53
  Uint32 fragId;
 
54
  Uint32 localKey[2];
 
55
  Uint32 localKeyLength;
 
56
  Uint32 gci;
 
57
};
 
58
 
 
59
#endif