mariadb/storage/ndb/include/kernel/signaldata/AccLock.hpp
unknown 641ce5e97e wl2723 - ndb opt. nr
mysql-test/t/rpl_multi_engine.test:
  merge fix
libmysqld/sql_tablespace.cc:
  New BitKeeper file ``libmysqld/sql_tablespace.cc''
mysql-test/r/ndb_basic_disk.result:
  New BitKeeper file ``mysql-test/r/ndb_basic_disk.result''
mysql-test/t/ndb_basic_disk.test:
  New BitKeeper file ``mysql-test/t/ndb_basic_disk.test''
sql/sql_tablespace.cc:
  New BitKeeper file ``sql/sql_tablespace.cc''
storage/ndb/src/kernel/blocks/OptNR.txt:
  New BitKeeper file ``storage/ndb/src/kernel/blocks/OptNR.txt''
storage/ndb/src/kernel/vm/mem.txt:
  New BitKeeper file ``storage/ndb/src/kernel/vm/mem.txt''
storage/ndb/src/kernel/vm/ndbd_malloc_impl.cpp:
  New BitKeeper file ``storage/ndb/src/kernel/vm/ndbd_malloc_impl.cpp''
storage/ndb/src/kernel/vm/ndbd_malloc_impl.hpp:
  New BitKeeper file ``storage/ndb/src/kernel/vm/ndbd_malloc_impl.hpp''
storage/ndb/tools/ndb_error_reporter:
  New BitKeeper file ``storage/ndb/tools/ndb_error_reporter''
2006-01-11 11:35:25 +01:00

66 lines
1.8 KiB
C++

/* Copyright (C) 2003 MySQL AB
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#ifndef ACC_LOCK_HPP
#define ACC_LOCK_HPP
#include "SignalData.hpp"
/*
* Lock or unlock tuple. If lock request is queued, the reply is later
* via ACCKEYCONF.
*/
class AccLockReq {
friend class Dbacc;
friend class Dbtup;
friend class Dbtux;
friend bool printACC_LOCKREQ(FILE *, const Uint32*, Uint32, Uint16);
public:
enum RequestType { // first byte
LockShared = 1,
LockExclusive = 2,
Unlock = 3,
Abort = 4,
AbortWithConf = 5
};
enum RequestFlag { // second byte
};
enum ReturnCode {
Success = 0,
IsBlocked = 1, // was put in lock queue
WouldBlock = 2, // if we add non-blocking option
Refused = 3,
NoFreeOp = 4
};
STATIC_CONST( LockSignalLength = 12 );
STATIC_CONST( UndoSignalLength = 3 );
private:
Uint32 returnCode;
Uint32 requestInfo;
Uint32 accOpPtr;
// rest only if lock request
Uint32 userPtr;
Uint32 userRef;
Uint32 tableId;
Uint32 fragId;
Uint32 fragPtrI;
Uint32 hashValue;
Uint32 tupAddr;
Uint32 transId1;
Uint32 transId2;
};
#endif