mariadb/ndb/include/kernel/signaldata/ScanFrag.hpp

366 lines
8.7 KiB
C++
Raw Normal View History

/* 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 SCAN_FRAG_HPP
#define SCAN_FRAG_HPP
#include "SignalData.hpp"
#include "ndb_limits.h"
class ScanFragReq {
/**
* Sender(s)
*/
friend class Dbtc;
friend class Backup;
friend class Suma;
/**
* Reciver(s)
*/
friend class Dblqh;
public:
STATIC_CONST( SignalLength = 12 );
NdbIndexScanOperation::reset_bounds() - Send BOUNDS as KEYINFO - At restart, only reset KEYINFO -- Fix resource shortage at KEYINFO in Dbtc and Dblqh w.r.t scan -- ndb/include/kernel/signaldata/AttrInfo.hpp: Let NdbScanOperation access AttrInfo ndb/include/kernel/signaldata/KeyInfo.hpp: Let NdbScanOperation access AttrInfo ndb/include/kernel/signaldata/ScanFrag.hpp: Send KeyLen in ScanFragReq (for range scans) ndb/include/kernel/signaldata/ScanTab.hpp: Send KeyLen in ScanTabReq (for range scans) ndb/include/ndbapi/NdbConnection.hpp: Function for adding op to list ndb/include/ndbapi/NdbIndexScanOperation.hpp: new method for saving BOUNDS ndb/include/ndbapi/NdbOperation.hpp: Remove bounds stuff from NdbOperation and put it into NdbScanOperation ndb/include/ndbapi/NdbScanOperation.hpp: reset bounds ndb/src/common/debugger/signaldata/Makefile.am: New signal data printer for ScanFrag ndb/src/common/debugger/signaldata/ScanTab.cpp: Fix printout ndb/src/common/debugger/signaldata/SignalDataPrint.cpp: New signal data printer for ScanFrag ndb/src/kernel/blocks/backup/Backup.cpp: Updated ScanFragReq ndb/src/kernel/blocks/dblqh/Dblqh.hpp: Use same sendKeyInfo for both acckeyreq and tux_bounds ndb/src/kernel/blocks/dblqh/DblqhMain.cpp: Let range scan use KEYinfo for bounds instead of attrinfo ndb/src/kernel/blocks/dbtc/Dbtc.hpp: Let range scan use KEYinfo for bounds instead of attrinfo ndb/src/kernel/blocks/dbtc/DbtcMain.cpp: Handle keyinfo in range scan ndb/src/kernel/blocks/dbtux/DbtuxScan.cpp: Skip useless 5 words in beginning of TuxBounds ndb/src/kernel/blocks/suma/Suma.cpp: Fix SCAN_FRAGREQ ndb/src/ndbapi/NdbConnection.cpp: reset bounds ndb/src/ndbapi/NdbOperation.cpp: Remove bounds ndb/src/ndbapi/NdbOperationDefine.cpp: Remove bounds stuff ndb/src/ndbapi/NdbOperationInt.cpp: Remove bounds stuff ndb/src/ndbapi/NdbScanOperation.cpp: Send BOUNDS in KEYINFO instead of ATTRINFO
2004-10-04 12:59:04 +02:00
friend bool printSCAN_FRAGREQ(FILE *, const Uint32*, Uint32, Uint16);
public:
Uint32 senderData;
Uint32 resultRef; // Where to send the result
Uint32 savePointId;
Uint32 requestInfo;
Uint32 tableId;
NdbIndexScanOperation::reset_bounds() - Send BOUNDS as KEYINFO - At restart, only reset KEYINFO -- Fix resource shortage at KEYINFO in Dbtc and Dblqh w.r.t scan -- ndb/include/kernel/signaldata/AttrInfo.hpp: Let NdbScanOperation access AttrInfo ndb/include/kernel/signaldata/KeyInfo.hpp: Let NdbScanOperation access AttrInfo ndb/include/kernel/signaldata/ScanFrag.hpp: Send KeyLen in ScanFragReq (for range scans) ndb/include/kernel/signaldata/ScanTab.hpp: Send KeyLen in ScanTabReq (for range scans) ndb/include/ndbapi/NdbConnection.hpp: Function for adding op to list ndb/include/ndbapi/NdbIndexScanOperation.hpp: new method for saving BOUNDS ndb/include/ndbapi/NdbOperation.hpp: Remove bounds stuff from NdbOperation and put it into NdbScanOperation ndb/include/ndbapi/NdbScanOperation.hpp: reset bounds ndb/src/common/debugger/signaldata/Makefile.am: New signal data printer for ScanFrag ndb/src/common/debugger/signaldata/ScanTab.cpp: Fix printout ndb/src/common/debugger/signaldata/SignalDataPrint.cpp: New signal data printer for ScanFrag ndb/src/kernel/blocks/backup/Backup.cpp: Updated ScanFragReq ndb/src/kernel/blocks/dblqh/Dblqh.hpp: Use same sendKeyInfo for both acckeyreq and tux_bounds ndb/src/kernel/blocks/dblqh/DblqhMain.cpp: Let range scan use KEYinfo for bounds instead of attrinfo ndb/src/kernel/blocks/dbtc/Dbtc.hpp: Let range scan use KEYinfo for bounds instead of attrinfo ndb/src/kernel/blocks/dbtc/DbtcMain.cpp: Handle keyinfo in range scan ndb/src/kernel/blocks/dbtux/DbtuxScan.cpp: Skip useless 5 words in beginning of TuxBounds ndb/src/kernel/blocks/suma/Suma.cpp: Fix SCAN_FRAGREQ ndb/src/ndbapi/NdbConnection.cpp: reset bounds ndb/src/ndbapi/NdbOperation.cpp: Remove bounds ndb/src/ndbapi/NdbOperationDefine.cpp: Remove bounds stuff ndb/src/ndbapi/NdbOperationInt.cpp: Remove bounds stuff ndb/src/ndbapi/NdbScanOperation.cpp: Send BOUNDS in KEYINFO instead of ATTRINFO
2004-10-04 12:59:04 +02:00
Uint32 fragmentNoKeyLen;
Uint32 schemaVersion;
Uint32 transId1;
Uint32 transId2;
First step for WL 2025 Not yet fully working Scan reads work fine, not scan updates ndb/include/kernel/ndb_limits.h: Introducing a new parameter plus increasing the max no of parallel operations per scan in LQH, first step in WL 2025 ndb/include/kernel/signaldata/ScanFrag.hpp: Only need one clientOpPtr Concurrency is batch_size to use in this scan batch_byte_size is max no of bytes sent in a batch first_batch_size is the batch size in the first batch ndb/include/kernel/signaldata/ScanTab.hpp: apiOperationPtr is sent as long signal data batch_byte_size and first_batch_size is needed for further transport to LQH batch size can now be bigger than before ndb/include/kernel/signaldata/TcKeyReq.hpp: More concurrency means more size for scanInfo also in TCKEYREQ ndb/include/ndbapi/NdbReceiver.hpp: New subroutine to caclculate batch size and similar parameters ndb/include/ndbapi/NdbScanOperation.hpp: batch size calculated before sending, not necessary to store anymore ndb/src/common/debugger/signaldata/ScanTab.cpp: Updated signal printer for SCAN_TABREQ ndb/src/kernel/blocks/backup/Backup.cpp: Fixes to make it compile, not fixed for BACKUP being useful yet ndb/src/kernel/blocks/dblqh/Dblqh.hpp: Removed parameters no longer needed and added some new ones. ndb/src/kernel/blocks/dblqh/DblqhMain.cpp: Fix for cmaxAccOps that was using the wrong constant Removed old code New SCAN_FRAGREQ signal ndb/src/kernel/blocks/dbtc/Dbtc.hpp: New variables Removed dead code ndb/src/kernel/blocks/dbtc/DbtcMain.cpp: New SCAN_TABREQ, SCAN_FRAGREQ, SCAN_FRAGCONF and SCAN_TABCONF Fixed some error handling to be more efficient ndb/src/kernel/blocks/suma/Suma.cpp: Fixes to make it compile, not yet usable for SUMA features ndb/src/kernel/vm/Configuration.cpp: Fix for wrong constant ndb/src/ndbapi/NdbApiSignal.cpp: Fix for not using constants ndb/src/ndbapi/NdbApiSignal.hpp: Added possibility to get signal sending node from signal ndb/src/ndbapi/NdbConnectionScan.cpp: Moved declaration ndb/src/ndbapi/NdbReceiver.cpp: New routine to calculate batch_size etc. ndb/src/ndbapi/NdbScanOperation.cpp: Various fixes for sending SCAN_TABREQ and other stuff
2004-08-09 17:43:15 +02:00
Uint32 clientOpPtr;
Uint32 batch_size_rows;
Uint32 batch_size_bytes;
static Uint32 getLockMode(const Uint32 & requestInfo);
static Uint32 getHoldLockFlag(const Uint32 & requestInfo);
static Uint32 getKeyinfoFlag(const Uint32 & requestInfo);
static Uint32 getReadCommittedFlag(const Uint32 & requestInfo);
static Uint32 getRangeScanFlag(const Uint32 & requestInfo);
ndb: wl-1893: range scanning backwards, ndb kernel ndb/include/kernel/signaldata/AccScan.hpp: wl-1893: range scanning backwards, ndb kernel ndb/include/kernel/signaldata/ScanFrag.hpp: wl-1893: range scanning backwards, ndb kernel ndb/include/kernel/signaldata/ScanTab.hpp: wl-1893: range scanning backwards, ndb kernel ndb/include/ndbapi/NdbIndexScanOperation.hpp: wl-1893: range scanning backwards, ndb kernel ndb/include/ndbapi/NdbScanOperation.hpp: wl-1893: range scanning backwards, ndb kernel ndb/src/common/debugger/signaldata/ScanTab.cpp: wl-1893: range scanning backwards, ndb kernel ndb/src/kernel/blocks/dblqh/Dblqh.hpp: wl-1893: range scanning backwards, ndb kernel ndb/src/kernel/blocks/dblqh/DblqhMain.cpp: wl-1893: range scanning backwards, ndb kernel ndb/src/kernel/blocks/dbtc/DbtcMain.cpp: wl-1893: range scanning backwards, ndb kernel ndb/src/kernel/blocks/dbtux/Dbtux.hpp: wl-1893: range scanning backwards, ndb kernel ndb/src/kernel/blocks/dbtux/DbtuxCmp.cpp: wl-1893: range scanning backwards, ndb kernel ndb/src/kernel/blocks/dbtux/DbtuxDebug.cpp: wl-1893: range scanning backwards, ndb kernel ndb/src/kernel/blocks/dbtux/DbtuxNode.cpp: wl-1893: range scanning backwards, ndb kernel ndb/src/kernel/blocks/dbtux/DbtuxScan.cpp: wl-1893: range scanning backwards, ndb kernel ndb/src/kernel/blocks/dbtux/DbtuxSearch.cpp: wl-1893: range scanning backwards, ndb kernel ndb/src/kernel/blocks/dbtux/DbtuxTree.cpp: wl-1893: range scanning backwards, ndb kernel ndb/src/ndbapi/NdbScanOperation.cpp: wl-1893: range scanning backwards, ndb kernel ndb/tools/select_all.cpp: wl-1893: range scanning backwards, ndb kernel sql/ha_ndbcluster.cc: wl-1893: range scanning backwards, ndb kernel
2004-12-17 10:20:18 +01:00
static Uint32 getDescendingFlag(const Uint32 & requestInfo);
static Uint32 getTupScanFlag(const Uint32 & requestInfo);
static Uint32 getAttrLen(const Uint32 & requestInfo);
Merge NDB patches into 4.1-clone, below is list of changesets # -------------------------------------------- # 04/04/13 joreland@mysql.com 1.1858.1.1 # Removal of NDBT_Table # -------------------------------------------- # 04/04/13 joreland@mysql.com 1.1858.1.2 # Removal of NDBT_Table # -------------------------------------------- # 04/04/13 joreland@mysql.com 1.1858.1.3 # Fix for crashing AT # -------------------------------------------- # 04/04/13 joreland@mysql.com 1.1858.1.4 # Bug fixes in testIndex # -------------------------------------------- # 04/04/13 joreland@mysql.com 1.1866.1.5 # Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb # into mysql.com:/home/jonas/src/tmp # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1858.1.5 # Fix for takeover when accessing indexes. # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1866.1.6 # Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb # into mysql.com:/home/jonas/src/tmp # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1858.2.1 # Fixed error handling of fire_trigger_ord + lqhkeyref w.r.t indexes # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1858.2.2 # Simple retry mechanism in UTIL # Helps testIndex -n BuildDuring _a lot_ # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1858.2.3 # Misc fixes to test prg. # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1858.2.4 # Allow more retires on application errors # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1858.2.5 # Pass no of rows fetched in SUB_SYNC_CONTINUE_REQ # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1869 # wl1714 # Improve parallellism # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1870 # Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb # into mysql.com:/home/jonas/src/wl1714 # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1866.1.7 # Merge # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1871 # Merge mysql.com:/home/jonas/src/wl1714 # into mysql.com:/home/jonas/src/mysql-4.1-ndb # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1872 # Fix for testScan -n ScanReadError5030 # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1873 # fix testDict -n FragmentType* # -------------------------------------------- # 04/04/14 johan@stingray.(none) 1.1866.2.1 # small fixes # -------------------------------------------- # 04/04/14 johan@stingray.(none) 1.1874 # Merge jandersson@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb # into stingray.(none):/space/bk/rep/mysql-4.1-ndb # -------------------------------------------- # 04/04/14 johan@stingray.(none) 1.1875 # handle rep node as an api node # -------------------------------------------- # 04/04/14 pekka@mysql.com 1.1873.1.1 # Fix for NDBT_Table removal # -------------------------------------------- # 04/04/15 joreland@mysql.com 1.1873.1.2 # Uninitialized var. # -------------------------------------------- # 04/04/15 johan@stingray.(none) 1.1876 # Merge jandersson@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb # into stingray.(none):/space/bk/rep/mysql-4.1-ndb # -------------------------------------------- # 04/04/15 joreland@mysql.com 1.1873.1.3 # Write pid before changing user # (as runas user probably doesn't have permissions on pid-dir) # -------------------------------------------- # -------------------------------------------- # 04/04/15 ndb@mc03.ndb.mysql.com 1.1862.1.3 # Fix printout of varchars # -------------------------------------------- # 04/04/15 ndb@mc03.ndb.mysql.com 1.1877 # Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb # into mc03.ndb.mysql.com:/space/ndb/tmp # -------------------------------------------- # 04/04/15 ndb@mc03.ndb.mysql.com 1.1862.1.4 # Hmm.. don't print attr as many times as length of array # -------------------------------------------- # 04/04/15 ndb@mc03.ndb.mysql.com 1.1878 # Merge mc03.ndb.mysql.com:/space/ndb/mysql-4.1-ndb # into mc03.ndb.mysql.com:/space/ndb/tmp # -------------------------------------------- # 04/04/15 joreland@mysql.com 1.1876.1.1 # Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb # into mysql.com:/home/jonas/src/mysql-4.1-ndb # -------------------------------------------- # 04/04/15 joreland@mysql.com 1.1877.1.1 # Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb # into mysql.com:/home/jonas/src/mysql-4.1-ndb # -------------------------------------------- # 04/04/15 ndb@mc03.ndb.mysql.com 1.1879 # Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb # into mc03.ndb.mysql.com:/space/ndb/tmp # -------------------------------------------- # 04/04/17 joreland@mysql.com 1.1880 # LCP bug when restarting ops take's longer than DIH sending a new lcp ord # Solution: # Send LCP_FRAG_REP after restarting all ops # -------------------------------------------- # 04/04/18 joreland@mysql.com 1.1881 # Missspelled ERROR_INSERT # -------------------------------------------- # 04/04/18 joreland@mysql.com 1.1882 # Added possibility to log only distributed signals # -------------------------------------------- # 04/04/22 joreland@mysql.com 1.1883 # Removed dependancy to libstdc++ # * pure virtual functions "__cxa_pure_virtual" is defined in libstd++ -> # remove all pure virtual functions # -------------------------------------------- # 04/04/23 joreland@mysql.com 1.1884 # Various minor bug fixes for problems found while compiling # with icc # -------------------------------------------- # -------------------------------------------- # 04/04/25 joreland@mysql.com 1.1885 # Removed debug code (joreland:1.1875) # -------------------------------------------- # 04/04/26 ejonore@mc03.ndb.mysql.com 1.1862.1.5 # Lock pages in memory _after_ daemon-mode (exec/fork) # -------------------------------------------- # 04/04/27 ejonore@mc03.ndb.mysql.com 1.1862.1.6 # 1) Trap abort() # 2) StopStart/StopAborted events # 3) warning if memlock fails # 4) use g_logger more often (instead of ndbout) # # -------------------------------------------- # 04/04/27 joreland@mysql.com 1.1886 # bug fix for a bug in wl1714 + software upgrade # -------------------------------------------- # 04/04/27 joreland@mysql.com 1.1887 # Cset exclude: joreland@mysql.com|ChangeSet|20040422160720|05374 # -------------------------------------------- # 04/04/27 joreland@mysql.com 1.1888 # removed libstc++ second try... # -------------------------------------------- # 04/04/28 ejonore@mc03.ndb.mysql.com 1.1862.1.7 # 1) Don't lock FUTURE pages but only current # 2) Do this when SIZEALT has completed # -------------------------------------------- # 04/04/30 joreland@mysql.com 1.1889 # Merge jonas@orca:/home/ndb/releases/mysql-4.1-ndb-3.4.x # into mysql.com:/home/jonas/src/mysql-4.1-ndb # -------------------------------------------- # 04/05/03 ndb@mc03.ndb.mysql.com 1.1862.1.8 # Version update # -------------------------------------------- # 04/05/03 joreland@mysql.com 1.1862.3.1 # Changed restart behavior. # Use "angel" process which monitor "real" process # -------------------------------------------- # 04/05/03 joreland@mysql.com 1.1862.1.9 # Merge jonas@orca:/home/ndb/releases/mysql-4.1-ndb-3.4.x # into mysql.com:/home/jonas/src/mysql-4.1-ndb-3.4.x # -------------------------------------------- # 04/05/03 joreland@mysql.com 1.1890 # Merge B2 fixes # -------------------------------------------- # -------------------------------------------- # 04/05/03 joreland@mysql.com 1.1862.1.10 # Better handling of children terminations # -------------------------------------------- # 04/05/03 joreland@mysql.com 1.1862.1.11 # Fixes for angel-restarting # -------------------------------------------- # 04/05/03 joreland@mysql.com 1.1891 # Merge mysql.com:/home/jonas/src/mysql-4.1-ndb-3.4.x # into mysql.com:/home/jonas/src/mysql-4.1-ndb # -------------------------------------------- # ndb/config/Defs.LINUX.x86.GCC.mk: Merge ndb fixes ndb/examples/ndbapi_async_example/Makefile: Merge ndb fixes ndb/examples/ndbapi_async_example/ndbapi_async.cpp: Merge ndb fixes ndb/examples/ndbapi_scan_example/Makefile: Merge ndb fixes ndb/include/debugger/SignalLoggerManager.hpp: Merge ndb fixes ndb/include/kernel/signaldata/ScanFrag.hpp: Merge ndb fixes ndb/include/ndb_version.h: Merge ndb fixes ndb/include/ndbapi/NdbScanOperation.hpp: Merge ndb fixes ndb/include/util/SocketServer.hpp: Merge ndb fixes ndb/src/common/debugger/SignalLoggerManager.cpp: Merge ndb fixes ndb/src/common/logger/ConsoleLogHandler.cpp: Merge ndb fixes ndb/src/common/portlib/unix/NdbMem.c: Merge ndb fixes ndb/src/common/util/Makefile: Merge ndb fixes ndb/src/common/util/version.c: Merge ndb fixes ndb/src/cw/cpcd/Process.cpp: Merge ndb fixes ndb/src/kernel/blocks/ERROR_codes.txt: Merge ndb fixes ndb/src/kernel/blocks/backup/restore/Restore.cpp: Merge ndb fixes ndb/src/kernel/blocks/backup/restore/Restore.hpp: Merge ndb fixes ndb/src/kernel/blocks/backup/restore/main.cpp: Merge ndb fixes ndb/src/kernel/blocks/cmvmi/Cmvmi.cpp: Merge ndb fixes ndb/src/kernel/blocks/dbdict/Dbdict.cpp: Merge ndb fixes ndb/src/kernel/blocks/dblqh/Dblqh.hpp: Merge ndb fixes ndb/src/kernel/blocks/dblqh/DblqhInit.cpp: Merge ndb fixes ndb/src/kernel/blocks/dblqh/DblqhMain.cpp: Merge ndb fixes ndb/src/kernel/blocks/dbtc/Dbtc.hpp: Merge ndb fixes ndb/src/kernel/blocks/dbtc/DbtcInit.cpp: Merge ndb fixes ndb/src/kernel/blocks/dbtc/DbtcMain.cpp: Merge ndb fixes ndb/src/kernel/blocks/dbutil/DbUtil.cpp: Merge ndb fixes ndb/src/kernel/blocks/dbutil/DbUtil.hpp: Merge ndb fixes ndb/src/kernel/blocks/ndbcntr/NdbcntrMain.cpp: Merge ndb fixes ndb/src/kernel/blocks/ndbfs/Filename.cpp: Merge ndb fixes ndb/src/kernel/blocks/suma/Suma.cpp: Merge ndb fixes ndb/src/kernel/error/Error.hpp: Merge ndb fixes ndb/src/kernel/ndb-main/Main.cpp: Merge ndb fixes ndb/src/kernel/vm/Configuration.cpp: Merge ndb fixes ndb/src/kernel/vm/Configuration.hpp: Merge ndb fixes ndb/src/kernel/vm/DLFifoList.hpp: Merge ndb fixes ndb/src/kernel/vm/Emulator.cpp: Merge ndb fixes ndb/src/kernel/vm/SignalCounter.hpp: Merge ndb fixes ndb/src/kernel/vm/SimulatedBlock.cpp: Merge ndb fixes ndb/src/mgmsrv/MgmtSrvr.cpp: Merge ndb fixes ndb/src/mgmsrv/NodeLogLevel.cpp: Merge ndb fixes ndb/src/ndbapi/ClusterMgr.cpp: Merge ndb fixes ndb/src/ndbapi/Ndberror.cpp: Merge ndb fixes ndb/src/rep/rep_version.hpp: Merge ndb fixes ndb/test/ndbapi/testDict/testDict.cpp: Merge ndb fixes ndb/test/ndbapi/testIndex/testIndex.cpp: Merge ndb fixes ndb/test/ndbapi/testMgm/testMgm.cpp: Merge ndb fixes ndb/test/ndbapi/testScan/testScan.cpp: Merge ndb fixes ndb/test/src/HugoTransactions.cpp: Merge ndb fixes ndb/test/src/NDBT_Tables.cpp: Merge ndb fixes ndb/test/src/NDBT_Test.cpp: Merge ndb fixes ndb/test/src/UtilTransactions.cpp: Merge ndb fixes BitKeeper/etc/logging_ok: Logging to logging@openlogging.org accepted
2004-05-04 11:19:19 +02:00
static Uint32 getScanPrio(const Uint32 & requestInfo);
static void setLockMode(Uint32 & requestInfo, Uint32 lockMode);
static void setHoldLockFlag(Uint32 & requestInfo, Uint32 holdLock);
static void setKeyinfoFlag(Uint32 & requestInfo, Uint32 keyinfo);
static void setReadCommittedFlag(Uint32 & requestInfo, Uint32 readCommitted);
static void setRangeScanFlag(Uint32 & requestInfo, Uint32 rangeScan);
ndb: wl-1893: range scanning backwards, ndb kernel ndb/include/kernel/signaldata/AccScan.hpp: wl-1893: range scanning backwards, ndb kernel ndb/include/kernel/signaldata/ScanFrag.hpp: wl-1893: range scanning backwards, ndb kernel ndb/include/kernel/signaldata/ScanTab.hpp: wl-1893: range scanning backwards, ndb kernel ndb/include/ndbapi/NdbIndexScanOperation.hpp: wl-1893: range scanning backwards, ndb kernel ndb/include/ndbapi/NdbScanOperation.hpp: wl-1893: range scanning backwards, ndb kernel ndb/src/common/debugger/signaldata/ScanTab.cpp: wl-1893: range scanning backwards, ndb kernel ndb/src/kernel/blocks/dblqh/Dblqh.hpp: wl-1893: range scanning backwards, ndb kernel ndb/src/kernel/blocks/dblqh/DblqhMain.cpp: wl-1893: range scanning backwards, ndb kernel ndb/src/kernel/blocks/dbtc/DbtcMain.cpp: wl-1893: range scanning backwards, ndb kernel ndb/src/kernel/blocks/dbtux/Dbtux.hpp: wl-1893: range scanning backwards, ndb kernel ndb/src/kernel/blocks/dbtux/DbtuxCmp.cpp: wl-1893: range scanning backwards, ndb kernel ndb/src/kernel/blocks/dbtux/DbtuxDebug.cpp: wl-1893: range scanning backwards, ndb kernel ndb/src/kernel/blocks/dbtux/DbtuxNode.cpp: wl-1893: range scanning backwards, ndb kernel ndb/src/kernel/blocks/dbtux/DbtuxScan.cpp: wl-1893: range scanning backwards, ndb kernel ndb/src/kernel/blocks/dbtux/DbtuxSearch.cpp: wl-1893: range scanning backwards, ndb kernel ndb/src/kernel/blocks/dbtux/DbtuxTree.cpp: wl-1893: range scanning backwards, ndb kernel ndb/src/ndbapi/NdbScanOperation.cpp: wl-1893: range scanning backwards, ndb kernel ndb/tools/select_all.cpp: wl-1893: range scanning backwards, ndb kernel sql/ha_ndbcluster.cc: wl-1893: range scanning backwards, ndb kernel
2004-12-17 10:20:18 +01:00
static void setDescendingFlag(Uint32 & requestInfo, Uint32 descending);
static void setTupScanFlag(Uint32 & requestInfo, Uint32 tupScan);
static void setAttrLen(Uint32 & requestInfo, Uint32 attrLen);
Merge NDB patches into 4.1-clone, below is list of changesets # -------------------------------------------- # 04/04/13 joreland@mysql.com 1.1858.1.1 # Removal of NDBT_Table # -------------------------------------------- # 04/04/13 joreland@mysql.com 1.1858.1.2 # Removal of NDBT_Table # -------------------------------------------- # 04/04/13 joreland@mysql.com 1.1858.1.3 # Fix for crashing AT # -------------------------------------------- # 04/04/13 joreland@mysql.com 1.1858.1.4 # Bug fixes in testIndex # -------------------------------------------- # 04/04/13 joreland@mysql.com 1.1866.1.5 # Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb # into mysql.com:/home/jonas/src/tmp # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1858.1.5 # Fix for takeover when accessing indexes. # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1866.1.6 # Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb # into mysql.com:/home/jonas/src/tmp # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1858.2.1 # Fixed error handling of fire_trigger_ord + lqhkeyref w.r.t indexes # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1858.2.2 # Simple retry mechanism in UTIL # Helps testIndex -n BuildDuring _a lot_ # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1858.2.3 # Misc fixes to test prg. # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1858.2.4 # Allow more retires on application errors # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1858.2.5 # Pass no of rows fetched in SUB_SYNC_CONTINUE_REQ # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1869 # wl1714 # Improve parallellism # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1870 # Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb # into mysql.com:/home/jonas/src/wl1714 # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1866.1.7 # Merge # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1871 # Merge mysql.com:/home/jonas/src/wl1714 # into mysql.com:/home/jonas/src/mysql-4.1-ndb # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1872 # Fix for testScan -n ScanReadError5030 # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1873 # fix testDict -n FragmentType* # -------------------------------------------- # 04/04/14 johan@stingray.(none) 1.1866.2.1 # small fixes # -------------------------------------------- # 04/04/14 johan@stingray.(none) 1.1874 # Merge jandersson@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb # into stingray.(none):/space/bk/rep/mysql-4.1-ndb # -------------------------------------------- # 04/04/14 johan@stingray.(none) 1.1875 # handle rep node as an api node # -------------------------------------------- # 04/04/14 pekka@mysql.com 1.1873.1.1 # Fix for NDBT_Table removal # -------------------------------------------- # 04/04/15 joreland@mysql.com 1.1873.1.2 # Uninitialized var. # -------------------------------------------- # 04/04/15 johan@stingray.(none) 1.1876 # Merge jandersson@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb # into stingray.(none):/space/bk/rep/mysql-4.1-ndb # -------------------------------------------- # 04/04/15 joreland@mysql.com 1.1873.1.3 # Write pid before changing user # (as runas user probably doesn't have permissions on pid-dir) # -------------------------------------------- # -------------------------------------------- # 04/04/15 ndb@mc03.ndb.mysql.com 1.1862.1.3 # Fix printout of varchars # -------------------------------------------- # 04/04/15 ndb@mc03.ndb.mysql.com 1.1877 # Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb # into mc03.ndb.mysql.com:/space/ndb/tmp # -------------------------------------------- # 04/04/15 ndb@mc03.ndb.mysql.com 1.1862.1.4 # Hmm.. don't print attr as many times as length of array # -------------------------------------------- # 04/04/15 ndb@mc03.ndb.mysql.com 1.1878 # Merge mc03.ndb.mysql.com:/space/ndb/mysql-4.1-ndb # into mc03.ndb.mysql.com:/space/ndb/tmp # -------------------------------------------- # 04/04/15 joreland@mysql.com 1.1876.1.1 # Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb # into mysql.com:/home/jonas/src/mysql-4.1-ndb # -------------------------------------------- # 04/04/15 joreland@mysql.com 1.1877.1.1 # Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb # into mysql.com:/home/jonas/src/mysql-4.1-ndb # -------------------------------------------- # 04/04/15 ndb@mc03.ndb.mysql.com 1.1879 # Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb # into mc03.ndb.mysql.com:/space/ndb/tmp # -------------------------------------------- # 04/04/17 joreland@mysql.com 1.1880 # LCP bug when restarting ops take's longer than DIH sending a new lcp ord # Solution: # Send LCP_FRAG_REP after restarting all ops # -------------------------------------------- # 04/04/18 joreland@mysql.com 1.1881 # Missspelled ERROR_INSERT # -------------------------------------------- # 04/04/18 joreland@mysql.com 1.1882 # Added possibility to log only distributed signals # -------------------------------------------- # 04/04/22 joreland@mysql.com 1.1883 # Removed dependancy to libstdc++ # * pure virtual functions "__cxa_pure_virtual" is defined in libstd++ -> # remove all pure virtual functions # -------------------------------------------- # 04/04/23 joreland@mysql.com 1.1884 # Various minor bug fixes for problems found while compiling # with icc # -------------------------------------------- # -------------------------------------------- # 04/04/25 joreland@mysql.com 1.1885 # Removed debug code (joreland:1.1875) # -------------------------------------------- # 04/04/26 ejonore@mc03.ndb.mysql.com 1.1862.1.5 # Lock pages in memory _after_ daemon-mode (exec/fork) # -------------------------------------------- # 04/04/27 ejonore@mc03.ndb.mysql.com 1.1862.1.6 # 1) Trap abort() # 2) StopStart/StopAborted events # 3) warning if memlock fails # 4) use g_logger more often (instead of ndbout) # # -------------------------------------------- # 04/04/27 joreland@mysql.com 1.1886 # bug fix for a bug in wl1714 + software upgrade # -------------------------------------------- # 04/04/27 joreland@mysql.com 1.1887 # Cset exclude: joreland@mysql.com|ChangeSet|20040422160720|05374 # -------------------------------------------- # 04/04/27 joreland@mysql.com 1.1888 # removed libstc++ second try... # -------------------------------------------- # 04/04/28 ejonore@mc03.ndb.mysql.com 1.1862.1.7 # 1) Don't lock FUTURE pages but only current # 2) Do this when SIZEALT has completed # -------------------------------------------- # 04/04/30 joreland@mysql.com 1.1889 # Merge jonas@orca:/home/ndb/releases/mysql-4.1-ndb-3.4.x # into mysql.com:/home/jonas/src/mysql-4.1-ndb # -------------------------------------------- # 04/05/03 ndb@mc03.ndb.mysql.com 1.1862.1.8 # Version update # -------------------------------------------- # 04/05/03 joreland@mysql.com 1.1862.3.1 # Changed restart behavior. # Use "angel" process which monitor "real" process # -------------------------------------------- # 04/05/03 joreland@mysql.com 1.1862.1.9 # Merge jonas@orca:/home/ndb/releases/mysql-4.1-ndb-3.4.x # into mysql.com:/home/jonas/src/mysql-4.1-ndb-3.4.x # -------------------------------------------- # 04/05/03 joreland@mysql.com 1.1890 # Merge B2 fixes # -------------------------------------------- # -------------------------------------------- # 04/05/03 joreland@mysql.com 1.1862.1.10 # Better handling of children terminations # -------------------------------------------- # 04/05/03 joreland@mysql.com 1.1862.1.11 # Fixes for angel-restarting # -------------------------------------------- # 04/05/03 joreland@mysql.com 1.1891 # Merge mysql.com:/home/jonas/src/mysql-4.1-ndb-3.4.x # into mysql.com:/home/jonas/src/mysql-4.1-ndb # -------------------------------------------- # ndb/config/Defs.LINUX.x86.GCC.mk: Merge ndb fixes ndb/examples/ndbapi_async_example/Makefile: Merge ndb fixes ndb/examples/ndbapi_async_example/ndbapi_async.cpp: Merge ndb fixes ndb/examples/ndbapi_scan_example/Makefile: Merge ndb fixes ndb/include/debugger/SignalLoggerManager.hpp: Merge ndb fixes ndb/include/kernel/signaldata/ScanFrag.hpp: Merge ndb fixes ndb/include/ndb_version.h: Merge ndb fixes ndb/include/ndbapi/NdbScanOperation.hpp: Merge ndb fixes ndb/include/util/SocketServer.hpp: Merge ndb fixes ndb/src/common/debugger/SignalLoggerManager.cpp: Merge ndb fixes ndb/src/common/logger/ConsoleLogHandler.cpp: Merge ndb fixes ndb/src/common/portlib/unix/NdbMem.c: Merge ndb fixes ndb/src/common/util/Makefile: Merge ndb fixes ndb/src/common/util/version.c: Merge ndb fixes ndb/src/cw/cpcd/Process.cpp: Merge ndb fixes ndb/src/kernel/blocks/ERROR_codes.txt: Merge ndb fixes ndb/src/kernel/blocks/backup/restore/Restore.cpp: Merge ndb fixes ndb/src/kernel/blocks/backup/restore/Restore.hpp: Merge ndb fixes ndb/src/kernel/blocks/backup/restore/main.cpp: Merge ndb fixes ndb/src/kernel/blocks/cmvmi/Cmvmi.cpp: Merge ndb fixes ndb/src/kernel/blocks/dbdict/Dbdict.cpp: Merge ndb fixes ndb/src/kernel/blocks/dblqh/Dblqh.hpp: Merge ndb fixes ndb/src/kernel/blocks/dblqh/DblqhInit.cpp: Merge ndb fixes ndb/src/kernel/blocks/dblqh/DblqhMain.cpp: Merge ndb fixes ndb/src/kernel/blocks/dbtc/Dbtc.hpp: Merge ndb fixes ndb/src/kernel/blocks/dbtc/DbtcInit.cpp: Merge ndb fixes ndb/src/kernel/blocks/dbtc/DbtcMain.cpp: Merge ndb fixes ndb/src/kernel/blocks/dbutil/DbUtil.cpp: Merge ndb fixes ndb/src/kernel/blocks/dbutil/DbUtil.hpp: Merge ndb fixes ndb/src/kernel/blocks/ndbcntr/NdbcntrMain.cpp: Merge ndb fixes ndb/src/kernel/blocks/ndbfs/Filename.cpp: Merge ndb fixes ndb/src/kernel/blocks/suma/Suma.cpp: Merge ndb fixes ndb/src/kernel/error/Error.hpp: Merge ndb fixes ndb/src/kernel/ndb-main/Main.cpp: Merge ndb fixes ndb/src/kernel/vm/Configuration.cpp: Merge ndb fixes ndb/src/kernel/vm/Configuration.hpp: Merge ndb fixes ndb/src/kernel/vm/DLFifoList.hpp: Merge ndb fixes ndb/src/kernel/vm/Emulator.cpp: Merge ndb fixes ndb/src/kernel/vm/SignalCounter.hpp: Merge ndb fixes ndb/src/kernel/vm/SimulatedBlock.cpp: Merge ndb fixes ndb/src/mgmsrv/MgmtSrvr.cpp: Merge ndb fixes ndb/src/mgmsrv/NodeLogLevel.cpp: Merge ndb fixes ndb/src/ndbapi/ClusterMgr.cpp: Merge ndb fixes ndb/src/ndbapi/Ndberror.cpp: Merge ndb fixes ndb/src/rep/rep_version.hpp: Merge ndb fixes ndb/test/ndbapi/testDict/testDict.cpp: Merge ndb fixes ndb/test/ndbapi/testIndex/testIndex.cpp: Merge ndb fixes ndb/test/ndbapi/testMgm/testMgm.cpp: Merge ndb fixes ndb/test/ndbapi/testScan/testScan.cpp: Merge ndb fixes ndb/test/src/HugoTransactions.cpp: Merge ndb fixes ndb/test/src/NDBT_Tables.cpp: Merge ndb fixes ndb/test/src/NDBT_Test.cpp: Merge ndb fixes ndb/test/src/UtilTransactions.cpp: Merge ndb fixes BitKeeper/etc/logging_ok: Logging to logging@openlogging.org accepted
2004-05-04 11:19:19 +02:00
static void setScanPrio(Uint32& requestInfo, Uint32 prio);
};
class KeyInfo20 {
/**
* Sender(s)
*/
friend class Dblqh;
/**
* Reciver(s)
*/
friend class Backup;
friend class NdbOperation;
friend class NdbScanReceiver;
public:
STATIC_CONST( HeaderLength = 5);
STATIC_CONST( DataLength = 20 );
static Uint32 setScanInfo(Uint32 noOfOps, Uint32 scanNo);
static Uint32 getScanNo(Uint32 scanInfo);
static Uint32 getScanOp(Uint32 scanInfo);
public:
Uint32 clientOpPtr;
Uint32 keyLen;
Uint32 scanInfo_Node;
Uint32 transId1;
Uint32 transId2;
Uint32 keyData[DataLength];
};
class ScanFragConf {
/**
* Sender(s)
*/
friend class Dblqh;
/**
* Reciver(s)
*/
friend class Dbtc;
friend class Backup;
friend class Suma;
public:
First step for WL 2025 Not yet fully working Scan reads work fine, not scan updates ndb/include/kernel/ndb_limits.h: Introducing a new parameter plus increasing the max no of parallel operations per scan in LQH, first step in WL 2025 ndb/include/kernel/signaldata/ScanFrag.hpp: Only need one clientOpPtr Concurrency is batch_size to use in this scan batch_byte_size is max no of bytes sent in a batch first_batch_size is the batch size in the first batch ndb/include/kernel/signaldata/ScanTab.hpp: apiOperationPtr is sent as long signal data batch_byte_size and first_batch_size is needed for further transport to LQH batch size can now be bigger than before ndb/include/kernel/signaldata/TcKeyReq.hpp: More concurrency means more size for scanInfo also in TCKEYREQ ndb/include/ndbapi/NdbReceiver.hpp: New subroutine to caclculate batch size and similar parameters ndb/include/ndbapi/NdbScanOperation.hpp: batch size calculated before sending, not necessary to store anymore ndb/src/common/debugger/signaldata/ScanTab.cpp: Updated signal printer for SCAN_TABREQ ndb/src/kernel/blocks/backup/Backup.cpp: Fixes to make it compile, not fixed for BACKUP being useful yet ndb/src/kernel/blocks/dblqh/Dblqh.hpp: Removed parameters no longer needed and added some new ones. ndb/src/kernel/blocks/dblqh/DblqhMain.cpp: Fix for cmaxAccOps that was using the wrong constant Removed old code New SCAN_FRAGREQ signal ndb/src/kernel/blocks/dbtc/Dbtc.hpp: New variables Removed dead code ndb/src/kernel/blocks/dbtc/DbtcMain.cpp: New SCAN_TABREQ, SCAN_FRAGREQ, SCAN_FRAGCONF and SCAN_TABCONF Fixed some error handling to be more efficient ndb/src/kernel/blocks/suma/Suma.cpp: Fixes to make it compile, not yet usable for SUMA features ndb/src/kernel/vm/Configuration.cpp: Fix for wrong constant ndb/src/ndbapi/NdbApiSignal.cpp: Fix for not using constants ndb/src/ndbapi/NdbApiSignal.hpp: Added possibility to get signal sending node from signal ndb/src/ndbapi/NdbConnectionScan.cpp: Moved declaration ndb/src/ndbapi/NdbReceiver.cpp: New routine to calculate batch_size etc. ndb/src/ndbapi/NdbScanOperation.cpp: Various fixes for sending SCAN_TABREQ and other stuff
2004-08-09 17:43:15 +02:00
STATIC_CONST( SignalLength = 6 );
public:
Uint32 senderData;
Uint32 completedOps;
Uint32 fragmentCompleted;
Uint32 transId1;
Uint32 transId2;
First step for WL 2025 Not yet fully working Scan reads work fine, not scan updates ndb/include/kernel/ndb_limits.h: Introducing a new parameter plus increasing the max no of parallel operations per scan in LQH, first step in WL 2025 ndb/include/kernel/signaldata/ScanFrag.hpp: Only need one clientOpPtr Concurrency is batch_size to use in this scan batch_byte_size is max no of bytes sent in a batch first_batch_size is the batch size in the first batch ndb/include/kernel/signaldata/ScanTab.hpp: apiOperationPtr is sent as long signal data batch_byte_size and first_batch_size is needed for further transport to LQH batch size can now be bigger than before ndb/include/kernel/signaldata/TcKeyReq.hpp: More concurrency means more size for scanInfo also in TCKEYREQ ndb/include/ndbapi/NdbReceiver.hpp: New subroutine to caclculate batch size and similar parameters ndb/include/ndbapi/NdbScanOperation.hpp: batch size calculated before sending, not necessary to store anymore ndb/src/common/debugger/signaldata/ScanTab.cpp: Updated signal printer for SCAN_TABREQ ndb/src/kernel/blocks/backup/Backup.cpp: Fixes to make it compile, not fixed for BACKUP being useful yet ndb/src/kernel/blocks/dblqh/Dblqh.hpp: Removed parameters no longer needed and added some new ones. ndb/src/kernel/blocks/dblqh/DblqhMain.cpp: Fix for cmaxAccOps that was using the wrong constant Removed old code New SCAN_FRAGREQ signal ndb/src/kernel/blocks/dbtc/Dbtc.hpp: New variables Removed dead code ndb/src/kernel/blocks/dbtc/DbtcMain.cpp: New SCAN_TABREQ, SCAN_FRAGREQ, SCAN_FRAGCONF and SCAN_TABCONF Fixed some error handling to be more efficient ndb/src/kernel/blocks/suma/Suma.cpp: Fixes to make it compile, not yet usable for SUMA features ndb/src/kernel/vm/Configuration.cpp: Fix for wrong constant ndb/src/ndbapi/NdbApiSignal.cpp: Fix for not using constants ndb/src/ndbapi/NdbApiSignal.hpp: Added possibility to get signal sending node from signal ndb/src/ndbapi/NdbConnectionScan.cpp: Moved declaration ndb/src/ndbapi/NdbReceiver.cpp: New routine to calculate batch_size etc. ndb/src/ndbapi/NdbScanOperation.cpp: Various fixes for sending SCAN_TABREQ and other stuff
2004-08-09 17:43:15 +02:00
Uint32 total_len;
};
class ScanFragRef {
/**
* Sender(s)
*/
friend class Dblqh;
/**
* Reciver(s)
*/
friend class Dbtc;
friend class Backup;
friend class Suma;
public:
STATIC_CONST( SignalLength = 4 );
public:
enum ErrorCode {
ZNO_FREE_TC_CONREC_ERROR = 484,
ZTOO_FEW_CONCURRENT_OPERATIONS = 485,
ZTOO_MANY_CONCURRENT_OPERATIONS = 486,
ZSCAN_NO_FRAGMENT_ERROR = 487,
ZTOO_MANY_ACTIVE_SCAN_ERROR = 488,
ZNO_FREE_SCANREC_ERROR = 489,
ZWRONG_BATCH_SIZE = 1230,
ZSTANDBY_SCAN_ERROR = 1209,
ZSCAN_BOOK_ACC_OP_ERROR = 1219,
ZUNKNOWN_TRANS_ERROR = 1227
};
Uint32 senderData;
Uint32 transId1;
Uint32 transId2;
Uint32 errorCode;
};
/**
* This is part of Scan Fragment protocol
*
* Not to be confused with ScanNextReq in Scan Table protocol
*/
class ScanFragNextReq {
/**
* Sender(s)
*/
friend class Dbtc;
friend class Backup;
friend class Suma;
/**
* Reciver(s)
*/
friend class Dblqh;
friend bool printSCANFRAGNEXTREQ(FILE * output, const Uint32 * theData,
Uint32 len, Uint16 receiverBlockNo);
public:
STATIC_CONST( SignalLength = 6 );
public:
Uint32 senderData;
Uint32 closeFlag;
Uint32 transId1;
Uint32 transId2;
Uint32 batch_size_rows;
Uint32 batch_size_bytes;
};
/**
* Request Info
*
* a = Length of attrinfo - 16 Bits (16-31)
* l = Lock Mode - 1 Bit 5
* h = Hold lock - 1 Bit 7
* k = Keyinfo - 1 Bit 8
* r = read committed - 1 Bit 9
* x = range scan - 1 Bit 6
ndb: wl-1893: range scanning backwards, ndb kernel ndb/include/kernel/signaldata/AccScan.hpp: wl-1893: range scanning backwards, ndb kernel ndb/include/kernel/signaldata/ScanFrag.hpp: wl-1893: range scanning backwards, ndb kernel ndb/include/kernel/signaldata/ScanTab.hpp: wl-1893: range scanning backwards, ndb kernel ndb/include/ndbapi/NdbIndexScanOperation.hpp: wl-1893: range scanning backwards, ndb kernel ndb/include/ndbapi/NdbScanOperation.hpp: wl-1893: range scanning backwards, ndb kernel ndb/src/common/debugger/signaldata/ScanTab.cpp: wl-1893: range scanning backwards, ndb kernel ndb/src/kernel/blocks/dblqh/Dblqh.hpp: wl-1893: range scanning backwards, ndb kernel ndb/src/kernel/blocks/dblqh/DblqhMain.cpp: wl-1893: range scanning backwards, ndb kernel ndb/src/kernel/blocks/dbtc/DbtcMain.cpp: wl-1893: range scanning backwards, ndb kernel ndb/src/kernel/blocks/dbtux/Dbtux.hpp: wl-1893: range scanning backwards, ndb kernel ndb/src/kernel/blocks/dbtux/DbtuxCmp.cpp: wl-1893: range scanning backwards, ndb kernel ndb/src/kernel/blocks/dbtux/DbtuxDebug.cpp: wl-1893: range scanning backwards, ndb kernel ndb/src/kernel/blocks/dbtux/DbtuxNode.cpp: wl-1893: range scanning backwards, ndb kernel ndb/src/kernel/blocks/dbtux/DbtuxScan.cpp: wl-1893: range scanning backwards, ndb kernel ndb/src/kernel/blocks/dbtux/DbtuxSearch.cpp: wl-1893: range scanning backwards, ndb kernel ndb/src/kernel/blocks/dbtux/DbtuxTree.cpp: wl-1893: range scanning backwards, ndb kernel ndb/src/ndbapi/NdbScanOperation.cpp: wl-1893: range scanning backwards, ndb kernel ndb/tools/select_all.cpp: wl-1893: range scanning backwards, ndb kernel sql/ha_ndbcluster.cc: wl-1893: range scanning backwards, ndb kernel
2004-12-17 10:20:18 +01:00
* z = descending - 1 Bit 10
* t = tup scan -1 Bit 11 (implies x=z=0)
Merge NDB patches into 4.1-clone, below is list of changesets # -------------------------------------------- # 04/04/13 joreland@mysql.com 1.1858.1.1 # Removal of NDBT_Table # -------------------------------------------- # 04/04/13 joreland@mysql.com 1.1858.1.2 # Removal of NDBT_Table # -------------------------------------------- # 04/04/13 joreland@mysql.com 1.1858.1.3 # Fix for crashing AT # -------------------------------------------- # 04/04/13 joreland@mysql.com 1.1858.1.4 # Bug fixes in testIndex # -------------------------------------------- # 04/04/13 joreland@mysql.com 1.1866.1.5 # Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb # into mysql.com:/home/jonas/src/tmp # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1858.1.5 # Fix for takeover when accessing indexes. # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1866.1.6 # Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb # into mysql.com:/home/jonas/src/tmp # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1858.2.1 # Fixed error handling of fire_trigger_ord + lqhkeyref w.r.t indexes # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1858.2.2 # Simple retry mechanism in UTIL # Helps testIndex -n BuildDuring _a lot_ # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1858.2.3 # Misc fixes to test prg. # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1858.2.4 # Allow more retires on application errors # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1858.2.5 # Pass no of rows fetched in SUB_SYNC_CONTINUE_REQ # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1869 # wl1714 # Improve parallellism # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1870 # Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb # into mysql.com:/home/jonas/src/wl1714 # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1866.1.7 # Merge # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1871 # Merge mysql.com:/home/jonas/src/wl1714 # into mysql.com:/home/jonas/src/mysql-4.1-ndb # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1872 # Fix for testScan -n ScanReadError5030 # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1873 # fix testDict -n FragmentType* # -------------------------------------------- # 04/04/14 johan@stingray.(none) 1.1866.2.1 # small fixes # -------------------------------------------- # 04/04/14 johan@stingray.(none) 1.1874 # Merge jandersson@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb # into stingray.(none):/space/bk/rep/mysql-4.1-ndb # -------------------------------------------- # 04/04/14 johan@stingray.(none) 1.1875 # handle rep node as an api node # -------------------------------------------- # 04/04/14 pekka@mysql.com 1.1873.1.1 # Fix for NDBT_Table removal # -------------------------------------------- # 04/04/15 joreland@mysql.com 1.1873.1.2 # Uninitialized var. # -------------------------------------------- # 04/04/15 johan@stingray.(none) 1.1876 # Merge jandersson@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb # into stingray.(none):/space/bk/rep/mysql-4.1-ndb # -------------------------------------------- # 04/04/15 joreland@mysql.com 1.1873.1.3 # Write pid before changing user # (as runas user probably doesn't have permissions on pid-dir) # -------------------------------------------- # -------------------------------------------- # 04/04/15 ndb@mc03.ndb.mysql.com 1.1862.1.3 # Fix printout of varchars # -------------------------------------------- # 04/04/15 ndb@mc03.ndb.mysql.com 1.1877 # Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb # into mc03.ndb.mysql.com:/space/ndb/tmp # -------------------------------------------- # 04/04/15 ndb@mc03.ndb.mysql.com 1.1862.1.4 # Hmm.. don't print attr as many times as length of array # -------------------------------------------- # 04/04/15 ndb@mc03.ndb.mysql.com 1.1878 # Merge mc03.ndb.mysql.com:/space/ndb/mysql-4.1-ndb # into mc03.ndb.mysql.com:/space/ndb/tmp # -------------------------------------------- # 04/04/15 joreland@mysql.com 1.1876.1.1 # Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb # into mysql.com:/home/jonas/src/mysql-4.1-ndb # -------------------------------------------- # 04/04/15 joreland@mysql.com 1.1877.1.1 # Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb # into mysql.com:/home/jonas/src/mysql-4.1-ndb # -------------------------------------------- # 04/04/15 ndb@mc03.ndb.mysql.com 1.1879 # Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb # into mc03.ndb.mysql.com:/space/ndb/tmp # -------------------------------------------- # 04/04/17 joreland@mysql.com 1.1880 # LCP bug when restarting ops take's longer than DIH sending a new lcp ord # Solution: # Send LCP_FRAG_REP after restarting all ops # -------------------------------------------- # 04/04/18 joreland@mysql.com 1.1881 # Missspelled ERROR_INSERT # -------------------------------------------- # 04/04/18 joreland@mysql.com 1.1882 # Added possibility to log only distributed signals # -------------------------------------------- # 04/04/22 joreland@mysql.com 1.1883 # Removed dependancy to libstdc++ # * pure virtual functions "__cxa_pure_virtual" is defined in libstd++ -> # remove all pure virtual functions # -------------------------------------------- # 04/04/23 joreland@mysql.com 1.1884 # Various minor bug fixes for problems found while compiling # with icc # -------------------------------------------- # -------------------------------------------- # 04/04/25 joreland@mysql.com 1.1885 # Removed debug code (joreland:1.1875) # -------------------------------------------- # 04/04/26 ejonore@mc03.ndb.mysql.com 1.1862.1.5 # Lock pages in memory _after_ daemon-mode (exec/fork) # -------------------------------------------- # 04/04/27 ejonore@mc03.ndb.mysql.com 1.1862.1.6 # 1) Trap abort() # 2) StopStart/StopAborted events # 3) warning if memlock fails # 4) use g_logger more often (instead of ndbout) # # -------------------------------------------- # 04/04/27 joreland@mysql.com 1.1886 # bug fix for a bug in wl1714 + software upgrade # -------------------------------------------- # 04/04/27 joreland@mysql.com 1.1887 # Cset exclude: joreland@mysql.com|ChangeSet|20040422160720|05374 # -------------------------------------------- # 04/04/27 joreland@mysql.com 1.1888 # removed libstc++ second try... # -------------------------------------------- # 04/04/28 ejonore@mc03.ndb.mysql.com 1.1862.1.7 # 1) Don't lock FUTURE pages but only current # 2) Do this when SIZEALT has completed # -------------------------------------------- # 04/04/30 joreland@mysql.com 1.1889 # Merge jonas@orca:/home/ndb/releases/mysql-4.1-ndb-3.4.x # into mysql.com:/home/jonas/src/mysql-4.1-ndb # -------------------------------------------- # 04/05/03 ndb@mc03.ndb.mysql.com 1.1862.1.8 # Version update # -------------------------------------------- # 04/05/03 joreland@mysql.com 1.1862.3.1 # Changed restart behavior. # Use "angel" process which monitor "real" process # -------------------------------------------- # 04/05/03 joreland@mysql.com 1.1862.1.9 # Merge jonas@orca:/home/ndb/releases/mysql-4.1-ndb-3.4.x # into mysql.com:/home/jonas/src/mysql-4.1-ndb-3.4.x # -------------------------------------------- # 04/05/03 joreland@mysql.com 1.1890 # Merge B2 fixes # -------------------------------------------- # -------------------------------------------- # 04/05/03 joreland@mysql.com 1.1862.1.10 # Better handling of children terminations # -------------------------------------------- # 04/05/03 joreland@mysql.com 1.1862.1.11 # Fixes for angel-restarting # -------------------------------------------- # 04/05/03 joreland@mysql.com 1.1891 # Merge mysql.com:/home/jonas/src/mysql-4.1-ndb-3.4.x # into mysql.com:/home/jonas/src/mysql-4.1-ndb # -------------------------------------------- # ndb/config/Defs.LINUX.x86.GCC.mk: Merge ndb fixes ndb/examples/ndbapi_async_example/Makefile: Merge ndb fixes ndb/examples/ndbapi_async_example/ndbapi_async.cpp: Merge ndb fixes ndb/examples/ndbapi_scan_example/Makefile: Merge ndb fixes ndb/include/debugger/SignalLoggerManager.hpp: Merge ndb fixes ndb/include/kernel/signaldata/ScanFrag.hpp: Merge ndb fixes ndb/include/ndb_version.h: Merge ndb fixes ndb/include/ndbapi/NdbScanOperation.hpp: Merge ndb fixes ndb/include/util/SocketServer.hpp: Merge ndb fixes ndb/src/common/debugger/SignalLoggerManager.cpp: Merge ndb fixes ndb/src/common/logger/ConsoleLogHandler.cpp: Merge ndb fixes ndb/src/common/portlib/unix/NdbMem.c: Merge ndb fixes ndb/src/common/util/Makefile: Merge ndb fixes ndb/src/common/util/version.c: Merge ndb fixes ndb/src/cw/cpcd/Process.cpp: Merge ndb fixes ndb/src/kernel/blocks/ERROR_codes.txt: Merge ndb fixes ndb/src/kernel/blocks/backup/restore/Restore.cpp: Merge ndb fixes ndb/src/kernel/blocks/backup/restore/Restore.hpp: Merge ndb fixes ndb/src/kernel/blocks/backup/restore/main.cpp: Merge ndb fixes ndb/src/kernel/blocks/cmvmi/Cmvmi.cpp: Merge ndb fixes ndb/src/kernel/blocks/dbdict/Dbdict.cpp: Merge ndb fixes ndb/src/kernel/blocks/dblqh/Dblqh.hpp: Merge ndb fixes ndb/src/kernel/blocks/dblqh/DblqhInit.cpp: Merge ndb fixes ndb/src/kernel/blocks/dblqh/DblqhMain.cpp: Merge ndb fixes ndb/src/kernel/blocks/dbtc/Dbtc.hpp: Merge ndb fixes ndb/src/kernel/blocks/dbtc/DbtcInit.cpp: Merge ndb fixes ndb/src/kernel/blocks/dbtc/DbtcMain.cpp: Merge ndb fixes ndb/src/kernel/blocks/dbutil/DbUtil.cpp: Merge ndb fixes ndb/src/kernel/blocks/dbutil/DbUtil.hpp: Merge ndb fixes ndb/src/kernel/blocks/ndbcntr/NdbcntrMain.cpp: Merge ndb fixes ndb/src/kernel/blocks/ndbfs/Filename.cpp: Merge ndb fixes ndb/src/kernel/blocks/suma/Suma.cpp: Merge ndb fixes ndb/src/kernel/error/Error.hpp: Merge ndb fixes ndb/src/kernel/ndb-main/Main.cpp: Merge ndb fixes ndb/src/kernel/vm/Configuration.cpp: Merge ndb fixes ndb/src/kernel/vm/Configuration.hpp: Merge ndb fixes ndb/src/kernel/vm/DLFifoList.hpp: Merge ndb fixes ndb/src/kernel/vm/Emulator.cpp: Merge ndb fixes ndb/src/kernel/vm/SignalCounter.hpp: Merge ndb fixes ndb/src/kernel/vm/SimulatedBlock.cpp: Merge ndb fixes ndb/src/mgmsrv/MgmtSrvr.cpp: Merge ndb fixes ndb/src/mgmsrv/NodeLogLevel.cpp: Merge ndb fixes ndb/src/ndbapi/ClusterMgr.cpp: Merge ndb fixes ndb/src/ndbapi/Ndberror.cpp: Merge ndb fixes ndb/src/rep/rep_version.hpp: Merge ndb fixes ndb/test/ndbapi/testDict/testDict.cpp: Merge ndb fixes ndb/test/ndbapi/testIndex/testIndex.cpp: Merge ndb fixes ndb/test/ndbapi/testMgm/testMgm.cpp: Merge ndb fixes ndb/test/ndbapi/testScan/testScan.cpp: Merge ndb fixes ndb/test/src/HugoTransactions.cpp: Merge ndb fixes ndb/test/src/NDBT_Tables.cpp: Merge ndb fixes ndb/test/src/NDBT_Test.cpp: Merge ndb fixes ndb/test/src/UtilTransactions.cpp: Merge ndb fixes BitKeeper/etc/logging_ok: Logging to logging@openlogging.org accepted
2004-05-04 11:19:19 +02:00
* p = Scan prio - 4 Bits (12-15) -> max 15
*
* 1111111111222222222233
* 01234567890123456789012345678901
* lxhkrztppppaaaaaaaaaaaaaaaa
*/
#define SF_LOCK_MODE_SHIFT (5)
#define SF_LOCK_MODE_MASK (1)
#define SF_HOLD_LOCK_SHIFT (7)
#define SF_KEYINFO_SHIFT (8)
#define SF_READ_COMMITTED_SHIFT (9)
#define SF_RANGE_SCAN_SHIFT (6)
ndb: wl-1893: range scanning backwards, ndb kernel ndb/include/kernel/signaldata/AccScan.hpp: wl-1893: range scanning backwards, ndb kernel ndb/include/kernel/signaldata/ScanFrag.hpp: wl-1893: range scanning backwards, ndb kernel ndb/include/kernel/signaldata/ScanTab.hpp: wl-1893: range scanning backwards, ndb kernel ndb/include/ndbapi/NdbIndexScanOperation.hpp: wl-1893: range scanning backwards, ndb kernel ndb/include/ndbapi/NdbScanOperation.hpp: wl-1893: range scanning backwards, ndb kernel ndb/src/common/debugger/signaldata/ScanTab.cpp: wl-1893: range scanning backwards, ndb kernel ndb/src/kernel/blocks/dblqh/Dblqh.hpp: wl-1893: range scanning backwards, ndb kernel ndb/src/kernel/blocks/dblqh/DblqhMain.cpp: wl-1893: range scanning backwards, ndb kernel ndb/src/kernel/blocks/dbtc/DbtcMain.cpp: wl-1893: range scanning backwards, ndb kernel ndb/src/kernel/blocks/dbtux/Dbtux.hpp: wl-1893: range scanning backwards, ndb kernel ndb/src/kernel/blocks/dbtux/DbtuxCmp.cpp: wl-1893: range scanning backwards, ndb kernel ndb/src/kernel/blocks/dbtux/DbtuxDebug.cpp: wl-1893: range scanning backwards, ndb kernel ndb/src/kernel/blocks/dbtux/DbtuxNode.cpp: wl-1893: range scanning backwards, ndb kernel ndb/src/kernel/blocks/dbtux/DbtuxScan.cpp: wl-1893: range scanning backwards, ndb kernel ndb/src/kernel/blocks/dbtux/DbtuxSearch.cpp: wl-1893: range scanning backwards, ndb kernel ndb/src/kernel/blocks/dbtux/DbtuxTree.cpp: wl-1893: range scanning backwards, ndb kernel ndb/src/ndbapi/NdbScanOperation.cpp: wl-1893: range scanning backwards, ndb kernel ndb/tools/select_all.cpp: wl-1893: range scanning backwards, ndb kernel sql/ha_ndbcluster.cc: wl-1893: range scanning backwards, ndb kernel
2004-12-17 10:20:18 +01:00
#define SF_DESCENDING_SHIFT (10)
#define SF_TUP_SCAN_SHIFT (11)
#define SF_ATTR_LEN_SHIFT (16)
#define SF_ATTR_LEN_MASK (65535)
Merge NDB patches into 4.1-clone, below is list of changesets # -------------------------------------------- # 04/04/13 joreland@mysql.com 1.1858.1.1 # Removal of NDBT_Table # -------------------------------------------- # 04/04/13 joreland@mysql.com 1.1858.1.2 # Removal of NDBT_Table # -------------------------------------------- # 04/04/13 joreland@mysql.com 1.1858.1.3 # Fix for crashing AT # -------------------------------------------- # 04/04/13 joreland@mysql.com 1.1858.1.4 # Bug fixes in testIndex # -------------------------------------------- # 04/04/13 joreland@mysql.com 1.1866.1.5 # Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb # into mysql.com:/home/jonas/src/tmp # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1858.1.5 # Fix for takeover when accessing indexes. # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1866.1.6 # Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb # into mysql.com:/home/jonas/src/tmp # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1858.2.1 # Fixed error handling of fire_trigger_ord + lqhkeyref w.r.t indexes # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1858.2.2 # Simple retry mechanism in UTIL # Helps testIndex -n BuildDuring _a lot_ # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1858.2.3 # Misc fixes to test prg. # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1858.2.4 # Allow more retires on application errors # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1858.2.5 # Pass no of rows fetched in SUB_SYNC_CONTINUE_REQ # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1869 # wl1714 # Improve parallellism # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1870 # Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb # into mysql.com:/home/jonas/src/wl1714 # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1866.1.7 # Merge # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1871 # Merge mysql.com:/home/jonas/src/wl1714 # into mysql.com:/home/jonas/src/mysql-4.1-ndb # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1872 # Fix for testScan -n ScanReadError5030 # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1873 # fix testDict -n FragmentType* # -------------------------------------------- # 04/04/14 johan@stingray.(none) 1.1866.2.1 # small fixes # -------------------------------------------- # 04/04/14 johan@stingray.(none) 1.1874 # Merge jandersson@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb # into stingray.(none):/space/bk/rep/mysql-4.1-ndb # -------------------------------------------- # 04/04/14 johan@stingray.(none) 1.1875 # handle rep node as an api node # -------------------------------------------- # 04/04/14 pekka@mysql.com 1.1873.1.1 # Fix for NDBT_Table removal # -------------------------------------------- # 04/04/15 joreland@mysql.com 1.1873.1.2 # Uninitialized var. # -------------------------------------------- # 04/04/15 johan@stingray.(none) 1.1876 # Merge jandersson@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb # into stingray.(none):/space/bk/rep/mysql-4.1-ndb # -------------------------------------------- # 04/04/15 joreland@mysql.com 1.1873.1.3 # Write pid before changing user # (as runas user probably doesn't have permissions on pid-dir) # -------------------------------------------- # -------------------------------------------- # 04/04/15 ndb@mc03.ndb.mysql.com 1.1862.1.3 # Fix printout of varchars # -------------------------------------------- # 04/04/15 ndb@mc03.ndb.mysql.com 1.1877 # Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb # into mc03.ndb.mysql.com:/space/ndb/tmp # -------------------------------------------- # 04/04/15 ndb@mc03.ndb.mysql.com 1.1862.1.4 # Hmm.. don't print attr as many times as length of array # -------------------------------------------- # 04/04/15 ndb@mc03.ndb.mysql.com 1.1878 # Merge mc03.ndb.mysql.com:/space/ndb/mysql-4.1-ndb # into mc03.ndb.mysql.com:/space/ndb/tmp # -------------------------------------------- # 04/04/15 joreland@mysql.com 1.1876.1.1 # Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb # into mysql.com:/home/jonas/src/mysql-4.1-ndb # -------------------------------------------- # 04/04/15 joreland@mysql.com 1.1877.1.1 # Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb # into mysql.com:/home/jonas/src/mysql-4.1-ndb # -------------------------------------------- # 04/04/15 ndb@mc03.ndb.mysql.com 1.1879 # Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb # into mc03.ndb.mysql.com:/space/ndb/tmp # -------------------------------------------- # 04/04/17 joreland@mysql.com 1.1880 # LCP bug when restarting ops take's longer than DIH sending a new lcp ord # Solution: # Send LCP_FRAG_REP after restarting all ops # -------------------------------------------- # 04/04/18 joreland@mysql.com 1.1881 # Missspelled ERROR_INSERT # -------------------------------------------- # 04/04/18 joreland@mysql.com 1.1882 # Added possibility to log only distributed signals # -------------------------------------------- # 04/04/22 joreland@mysql.com 1.1883 # Removed dependancy to libstdc++ # * pure virtual functions "__cxa_pure_virtual" is defined in libstd++ -> # remove all pure virtual functions # -------------------------------------------- # 04/04/23 joreland@mysql.com 1.1884 # Various minor bug fixes for problems found while compiling # with icc # -------------------------------------------- # -------------------------------------------- # 04/04/25 joreland@mysql.com 1.1885 # Removed debug code (joreland:1.1875) # -------------------------------------------- # 04/04/26 ejonore@mc03.ndb.mysql.com 1.1862.1.5 # Lock pages in memory _after_ daemon-mode (exec/fork) # -------------------------------------------- # 04/04/27 ejonore@mc03.ndb.mysql.com 1.1862.1.6 # 1) Trap abort() # 2) StopStart/StopAborted events # 3) warning if memlock fails # 4) use g_logger more often (instead of ndbout) # # -------------------------------------------- # 04/04/27 joreland@mysql.com 1.1886 # bug fix for a bug in wl1714 + software upgrade # -------------------------------------------- # 04/04/27 joreland@mysql.com 1.1887 # Cset exclude: joreland@mysql.com|ChangeSet|20040422160720|05374 # -------------------------------------------- # 04/04/27 joreland@mysql.com 1.1888 # removed libstc++ second try... # -------------------------------------------- # 04/04/28 ejonore@mc03.ndb.mysql.com 1.1862.1.7 # 1) Don't lock FUTURE pages but only current # 2) Do this when SIZEALT has completed # -------------------------------------------- # 04/04/30 joreland@mysql.com 1.1889 # Merge jonas@orca:/home/ndb/releases/mysql-4.1-ndb-3.4.x # into mysql.com:/home/jonas/src/mysql-4.1-ndb # -------------------------------------------- # 04/05/03 ndb@mc03.ndb.mysql.com 1.1862.1.8 # Version update # -------------------------------------------- # 04/05/03 joreland@mysql.com 1.1862.3.1 # Changed restart behavior. # Use "angel" process which monitor "real" process # -------------------------------------------- # 04/05/03 joreland@mysql.com 1.1862.1.9 # Merge jonas@orca:/home/ndb/releases/mysql-4.1-ndb-3.4.x # into mysql.com:/home/jonas/src/mysql-4.1-ndb-3.4.x # -------------------------------------------- # 04/05/03 joreland@mysql.com 1.1890 # Merge B2 fixes # -------------------------------------------- # -------------------------------------------- # 04/05/03 joreland@mysql.com 1.1862.1.10 # Better handling of children terminations # -------------------------------------------- # 04/05/03 joreland@mysql.com 1.1862.1.11 # Fixes for angel-restarting # -------------------------------------------- # 04/05/03 joreland@mysql.com 1.1891 # Merge mysql.com:/home/jonas/src/mysql-4.1-ndb-3.4.x # into mysql.com:/home/jonas/src/mysql-4.1-ndb # -------------------------------------------- # ndb/config/Defs.LINUX.x86.GCC.mk: Merge ndb fixes ndb/examples/ndbapi_async_example/Makefile: Merge ndb fixes ndb/examples/ndbapi_async_example/ndbapi_async.cpp: Merge ndb fixes ndb/examples/ndbapi_scan_example/Makefile: Merge ndb fixes ndb/include/debugger/SignalLoggerManager.hpp: Merge ndb fixes ndb/include/kernel/signaldata/ScanFrag.hpp: Merge ndb fixes ndb/include/ndb_version.h: Merge ndb fixes ndb/include/ndbapi/NdbScanOperation.hpp: Merge ndb fixes ndb/include/util/SocketServer.hpp: Merge ndb fixes ndb/src/common/debugger/SignalLoggerManager.cpp: Merge ndb fixes ndb/src/common/logger/ConsoleLogHandler.cpp: Merge ndb fixes ndb/src/common/portlib/unix/NdbMem.c: Merge ndb fixes ndb/src/common/util/Makefile: Merge ndb fixes ndb/src/common/util/version.c: Merge ndb fixes ndb/src/cw/cpcd/Process.cpp: Merge ndb fixes ndb/src/kernel/blocks/ERROR_codes.txt: Merge ndb fixes ndb/src/kernel/blocks/backup/restore/Restore.cpp: Merge ndb fixes ndb/src/kernel/blocks/backup/restore/Restore.hpp: Merge ndb fixes ndb/src/kernel/blocks/backup/restore/main.cpp: Merge ndb fixes ndb/src/kernel/blocks/cmvmi/Cmvmi.cpp: Merge ndb fixes ndb/src/kernel/blocks/dbdict/Dbdict.cpp: Merge ndb fixes ndb/src/kernel/blocks/dblqh/Dblqh.hpp: Merge ndb fixes ndb/src/kernel/blocks/dblqh/DblqhInit.cpp: Merge ndb fixes ndb/src/kernel/blocks/dblqh/DblqhMain.cpp: Merge ndb fixes ndb/src/kernel/blocks/dbtc/Dbtc.hpp: Merge ndb fixes ndb/src/kernel/blocks/dbtc/DbtcInit.cpp: Merge ndb fixes ndb/src/kernel/blocks/dbtc/DbtcMain.cpp: Merge ndb fixes ndb/src/kernel/blocks/dbutil/DbUtil.cpp: Merge ndb fixes ndb/src/kernel/blocks/dbutil/DbUtil.hpp: Merge ndb fixes ndb/src/kernel/blocks/ndbcntr/NdbcntrMain.cpp: Merge ndb fixes ndb/src/kernel/blocks/ndbfs/Filename.cpp: Merge ndb fixes ndb/src/kernel/blocks/suma/Suma.cpp: Merge ndb fixes ndb/src/kernel/error/Error.hpp: Merge ndb fixes ndb/src/kernel/ndb-main/Main.cpp: Merge ndb fixes ndb/src/kernel/vm/Configuration.cpp: Merge ndb fixes ndb/src/kernel/vm/Configuration.hpp: Merge ndb fixes ndb/src/kernel/vm/DLFifoList.hpp: Merge ndb fixes ndb/src/kernel/vm/Emulator.cpp: Merge ndb fixes ndb/src/kernel/vm/SignalCounter.hpp: Merge ndb fixes ndb/src/kernel/vm/SimulatedBlock.cpp: Merge ndb fixes ndb/src/mgmsrv/MgmtSrvr.cpp: Merge ndb fixes ndb/src/mgmsrv/NodeLogLevel.cpp: Merge ndb fixes ndb/src/ndbapi/ClusterMgr.cpp: Merge ndb fixes ndb/src/ndbapi/Ndberror.cpp: Merge ndb fixes ndb/src/rep/rep_version.hpp: Merge ndb fixes ndb/test/ndbapi/testDict/testDict.cpp: Merge ndb fixes ndb/test/ndbapi/testIndex/testIndex.cpp: Merge ndb fixes ndb/test/ndbapi/testMgm/testMgm.cpp: Merge ndb fixes ndb/test/ndbapi/testScan/testScan.cpp: Merge ndb fixes ndb/test/src/HugoTransactions.cpp: Merge ndb fixes ndb/test/src/NDBT_Tables.cpp: Merge ndb fixes ndb/test/src/NDBT_Test.cpp: Merge ndb fixes ndb/test/src/UtilTransactions.cpp: Merge ndb fixes BitKeeper/etc/logging_ok: Logging to logging@openlogging.org accepted
2004-05-04 11:19:19 +02:00
#define SF_PRIO_SHIFT 12
#define SF_PRIO_MASK 15
inline
Uint32
ScanFragReq::getLockMode(const Uint32 & requestInfo){
return (requestInfo >> SF_LOCK_MODE_SHIFT) & SF_LOCK_MODE_MASK;
}
inline
Uint32
ScanFragReq::getHoldLockFlag(const Uint32 & requestInfo){
return (requestInfo >> SF_HOLD_LOCK_SHIFT) & 1;
}
inline
Uint32
ScanFragReq::getKeyinfoFlag(const Uint32 & requestInfo){
return (requestInfo >> SF_KEYINFO_SHIFT) & 1;
}
inline
Uint32
Merge NDB patches into 4.1-clone, below is list of changesets # -------------------------------------------- # 04/04/13 joreland@mysql.com 1.1858.1.1 # Removal of NDBT_Table # -------------------------------------------- # 04/04/13 joreland@mysql.com 1.1858.1.2 # Removal of NDBT_Table # -------------------------------------------- # 04/04/13 joreland@mysql.com 1.1858.1.3 # Fix for crashing AT # -------------------------------------------- # 04/04/13 joreland@mysql.com 1.1858.1.4 # Bug fixes in testIndex # -------------------------------------------- # 04/04/13 joreland@mysql.com 1.1866.1.5 # Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb # into mysql.com:/home/jonas/src/tmp # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1858.1.5 # Fix for takeover when accessing indexes. # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1866.1.6 # Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb # into mysql.com:/home/jonas/src/tmp # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1858.2.1 # Fixed error handling of fire_trigger_ord + lqhkeyref w.r.t indexes # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1858.2.2 # Simple retry mechanism in UTIL # Helps testIndex -n BuildDuring _a lot_ # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1858.2.3 # Misc fixes to test prg. # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1858.2.4 # Allow more retires on application errors # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1858.2.5 # Pass no of rows fetched in SUB_SYNC_CONTINUE_REQ # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1869 # wl1714 # Improve parallellism # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1870 # Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb # into mysql.com:/home/jonas/src/wl1714 # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1866.1.7 # Merge # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1871 # Merge mysql.com:/home/jonas/src/wl1714 # into mysql.com:/home/jonas/src/mysql-4.1-ndb # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1872 # Fix for testScan -n ScanReadError5030 # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1873 # fix testDict -n FragmentType* # -------------------------------------------- # 04/04/14 johan@stingray.(none) 1.1866.2.1 # small fixes # -------------------------------------------- # 04/04/14 johan@stingray.(none) 1.1874 # Merge jandersson@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb # into stingray.(none):/space/bk/rep/mysql-4.1-ndb # -------------------------------------------- # 04/04/14 johan@stingray.(none) 1.1875 # handle rep node as an api node # -------------------------------------------- # 04/04/14 pekka@mysql.com 1.1873.1.1 # Fix for NDBT_Table removal # -------------------------------------------- # 04/04/15 joreland@mysql.com 1.1873.1.2 # Uninitialized var. # -------------------------------------------- # 04/04/15 johan@stingray.(none) 1.1876 # Merge jandersson@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb # into stingray.(none):/space/bk/rep/mysql-4.1-ndb # -------------------------------------------- # 04/04/15 joreland@mysql.com 1.1873.1.3 # Write pid before changing user # (as runas user probably doesn't have permissions on pid-dir) # -------------------------------------------- # -------------------------------------------- # 04/04/15 ndb@mc03.ndb.mysql.com 1.1862.1.3 # Fix printout of varchars # -------------------------------------------- # 04/04/15 ndb@mc03.ndb.mysql.com 1.1877 # Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb # into mc03.ndb.mysql.com:/space/ndb/tmp # -------------------------------------------- # 04/04/15 ndb@mc03.ndb.mysql.com 1.1862.1.4 # Hmm.. don't print attr as many times as length of array # -------------------------------------------- # 04/04/15 ndb@mc03.ndb.mysql.com 1.1878 # Merge mc03.ndb.mysql.com:/space/ndb/mysql-4.1-ndb # into mc03.ndb.mysql.com:/space/ndb/tmp # -------------------------------------------- # 04/04/15 joreland@mysql.com 1.1876.1.1 # Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb # into mysql.com:/home/jonas/src/mysql-4.1-ndb # -------------------------------------------- # 04/04/15 joreland@mysql.com 1.1877.1.1 # Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb # into mysql.com:/home/jonas/src/mysql-4.1-ndb # -------------------------------------------- # 04/04/15 ndb@mc03.ndb.mysql.com 1.1879 # Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb # into mc03.ndb.mysql.com:/space/ndb/tmp # -------------------------------------------- # 04/04/17 joreland@mysql.com 1.1880 # LCP bug when restarting ops take's longer than DIH sending a new lcp ord # Solution: # Send LCP_FRAG_REP after restarting all ops # -------------------------------------------- # 04/04/18 joreland@mysql.com 1.1881 # Missspelled ERROR_INSERT # -------------------------------------------- # 04/04/18 joreland@mysql.com 1.1882 # Added possibility to log only distributed signals # -------------------------------------------- # 04/04/22 joreland@mysql.com 1.1883 # Removed dependancy to libstdc++ # * pure virtual functions "__cxa_pure_virtual" is defined in libstd++ -> # remove all pure virtual functions # -------------------------------------------- # 04/04/23 joreland@mysql.com 1.1884 # Various minor bug fixes for problems found while compiling # with icc # -------------------------------------------- # -------------------------------------------- # 04/04/25 joreland@mysql.com 1.1885 # Removed debug code (joreland:1.1875) # -------------------------------------------- # 04/04/26 ejonore@mc03.ndb.mysql.com 1.1862.1.5 # Lock pages in memory _after_ daemon-mode (exec/fork) # -------------------------------------------- # 04/04/27 ejonore@mc03.ndb.mysql.com 1.1862.1.6 # 1) Trap abort() # 2) StopStart/StopAborted events # 3) warning if memlock fails # 4) use g_logger more often (instead of ndbout) # # -------------------------------------------- # 04/04/27 joreland@mysql.com 1.1886 # bug fix for a bug in wl1714 + software upgrade # -------------------------------------------- # 04/04/27 joreland@mysql.com 1.1887 # Cset exclude: joreland@mysql.com|ChangeSet|20040422160720|05374 # -------------------------------------------- # 04/04/27 joreland@mysql.com 1.1888 # removed libstc++ second try... # -------------------------------------------- # 04/04/28 ejonore@mc03.ndb.mysql.com 1.1862.1.7 # 1) Don't lock FUTURE pages but only current # 2) Do this when SIZEALT has completed # -------------------------------------------- # 04/04/30 joreland@mysql.com 1.1889 # Merge jonas@orca:/home/ndb/releases/mysql-4.1-ndb-3.4.x # into mysql.com:/home/jonas/src/mysql-4.1-ndb # -------------------------------------------- # 04/05/03 ndb@mc03.ndb.mysql.com 1.1862.1.8 # Version update # -------------------------------------------- # 04/05/03 joreland@mysql.com 1.1862.3.1 # Changed restart behavior. # Use "angel" process which monitor "real" process # -------------------------------------------- # 04/05/03 joreland@mysql.com 1.1862.1.9 # Merge jonas@orca:/home/ndb/releases/mysql-4.1-ndb-3.4.x # into mysql.com:/home/jonas/src/mysql-4.1-ndb-3.4.x # -------------------------------------------- # 04/05/03 joreland@mysql.com 1.1890 # Merge B2 fixes # -------------------------------------------- # -------------------------------------------- # 04/05/03 joreland@mysql.com 1.1862.1.10 # Better handling of children terminations # -------------------------------------------- # 04/05/03 joreland@mysql.com 1.1862.1.11 # Fixes for angel-restarting # -------------------------------------------- # 04/05/03 joreland@mysql.com 1.1891 # Merge mysql.com:/home/jonas/src/mysql-4.1-ndb-3.4.x # into mysql.com:/home/jonas/src/mysql-4.1-ndb # -------------------------------------------- # ndb/config/Defs.LINUX.x86.GCC.mk: Merge ndb fixes ndb/examples/ndbapi_async_example/Makefile: Merge ndb fixes ndb/examples/ndbapi_async_example/ndbapi_async.cpp: Merge ndb fixes ndb/examples/ndbapi_scan_example/Makefile: Merge ndb fixes ndb/include/debugger/SignalLoggerManager.hpp: Merge ndb fixes ndb/include/kernel/signaldata/ScanFrag.hpp: Merge ndb fixes ndb/include/ndb_version.h: Merge ndb fixes ndb/include/ndbapi/NdbScanOperation.hpp: Merge ndb fixes ndb/include/util/SocketServer.hpp: Merge ndb fixes ndb/src/common/debugger/SignalLoggerManager.cpp: Merge ndb fixes ndb/src/common/logger/ConsoleLogHandler.cpp: Merge ndb fixes ndb/src/common/portlib/unix/NdbMem.c: Merge ndb fixes ndb/src/common/util/Makefile: Merge ndb fixes ndb/src/common/util/version.c: Merge ndb fixes ndb/src/cw/cpcd/Process.cpp: Merge ndb fixes ndb/src/kernel/blocks/ERROR_codes.txt: Merge ndb fixes ndb/src/kernel/blocks/backup/restore/Restore.cpp: Merge ndb fixes ndb/src/kernel/blocks/backup/restore/Restore.hpp: Merge ndb fixes ndb/src/kernel/blocks/backup/restore/main.cpp: Merge ndb fixes ndb/src/kernel/blocks/cmvmi/Cmvmi.cpp: Merge ndb fixes ndb/src/kernel/blocks/dbdict/Dbdict.cpp: Merge ndb fixes ndb/src/kernel/blocks/dblqh/Dblqh.hpp: Merge ndb fixes ndb/src/kernel/blocks/dblqh/DblqhInit.cpp: Merge ndb fixes ndb/src/kernel/blocks/dblqh/DblqhMain.cpp: Merge ndb fixes ndb/src/kernel/blocks/dbtc/Dbtc.hpp: Merge ndb fixes ndb/src/kernel/blocks/dbtc/DbtcInit.cpp: Merge ndb fixes ndb/src/kernel/blocks/dbtc/DbtcMain.cpp: Merge ndb fixes ndb/src/kernel/blocks/dbutil/DbUtil.cpp: Merge ndb fixes ndb/src/kernel/blocks/dbutil/DbUtil.hpp: Merge ndb fixes ndb/src/kernel/blocks/ndbcntr/NdbcntrMain.cpp: Merge ndb fixes ndb/src/kernel/blocks/ndbfs/Filename.cpp: Merge ndb fixes ndb/src/kernel/blocks/suma/Suma.cpp: Merge ndb fixes ndb/src/kernel/error/Error.hpp: Merge ndb fixes ndb/src/kernel/ndb-main/Main.cpp: Merge ndb fixes ndb/src/kernel/vm/Configuration.cpp: Merge ndb fixes ndb/src/kernel/vm/Configuration.hpp: Merge ndb fixes ndb/src/kernel/vm/DLFifoList.hpp: Merge ndb fixes ndb/src/kernel/vm/Emulator.cpp: Merge ndb fixes ndb/src/kernel/vm/SignalCounter.hpp: Merge ndb fixes ndb/src/kernel/vm/SimulatedBlock.cpp: Merge ndb fixes ndb/src/mgmsrv/MgmtSrvr.cpp: Merge ndb fixes ndb/src/mgmsrv/NodeLogLevel.cpp: Merge ndb fixes ndb/src/ndbapi/ClusterMgr.cpp: Merge ndb fixes ndb/src/ndbapi/Ndberror.cpp: Merge ndb fixes ndb/src/rep/rep_version.hpp: Merge ndb fixes ndb/test/ndbapi/testDict/testDict.cpp: Merge ndb fixes ndb/test/ndbapi/testIndex/testIndex.cpp: Merge ndb fixes ndb/test/ndbapi/testMgm/testMgm.cpp: Merge ndb fixes ndb/test/ndbapi/testScan/testScan.cpp: Merge ndb fixes ndb/test/src/HugoTransactions.cpp: Merge ndb fixes ndb/test/src/NDBT_Tables.cpp: Merge ndb fixes ndb/test/src/NDBT_Test.cpp: Merge ndb fixes ndb/test/src/UtilTransactions.cpp: Merge ndb fixes BitKeeper/etc/logging_ok: Logging to logging@openlogging.org accepted
2004-05-04 11:19:19 +02:00
ScanFragReq::getRangeScanFlag(const Uint32 & requestInfo){
return (requestInfo >> SF_RANGE_SCAN_SHIFT) & 1;
}
ndb: wl-1893: range scanning backwards, ndb kernel ndb/include/kernel/signaldata/AccScan.hpp: wl-1893: range scanning backwards, ndb kernel ndb/include/kernel/signaldata/ScanFrag.hpp: wl-1893: range scanning backwards, ndb kernel ndb/include/kernel/signaldata/ScanTab.hpp: wl-1893: range scanning backwards, ndb kernel ndb/include/ndbapi/NdbIndexScanOperation.hpp: wl-1893: range scanning backwards, ndb kernel ndb/include/ndbapi/NdbScanOperation.hpp: wl-1893: range scanning backwards, ndb kernel ndb/src/common/debugger/signaldata/ScanTab.cpp: wl-1893: range scanning backwards, ndb kernel ndb/src/kernel/blocks/dblqh/Dblqh.hpp: wl-1893: range scanning backwards, ndb kernel ndb/src/kernel/blocks/dblqh/DblqhMain.cpp: wl-1893: range scanning backwards, ndb kernel ndb/src/kernel/blocks/dbtc/DbtcMain.cpp: wl-1893: range scanning backwards, ndb kernel ndb/src/kernel/blocks/dbtux/Dbtux.hpp: wl-1893: range scanning backwards, ndb kernel ndb/src/kernel/blocks/dbtux/DbtuxCmp.cpp: wl-1893: range scanning backwards, ndb kernel ndb/src/kernel/blocks/dbtux/DbtuxDebug.cpp: wl-1893: range scanning backwards, ndb kernel ndb/src/kernel/blocks/dbtux/DbtuxNode.cpp: wl-1893: range scanning backwards, ndb kernel ndb/src/kernel/blocks/dbtux/DbtuxScan.cpp: wl-1893: range scanning backwards, ndb kernel ndb/src/kernel/blocks/dbtux/DbtuxSearch.cpp: wl-1893: range scanning backwards, ndb kernel ndb/src/kernel/blocks/dbtux/DbtuxTree.cpp: wl-1893: range scanning backwards, ndb kernel ndb/src/ndbapi/NdbScanOperation.cpp: wl-1893: range scanning backwards, ndb kernel ndb/tools/select_all.cpp: wl-1893: range scanning backwards, ndb kernel sql/ha_ndbcluster.cc: wl-1893: range scanning backwards, ndb kernel
2004-12-17 10:20:18 +01:00
inline
Uint32
ScanFragReq::getDescendingFlag(const Uint32 & requestInfo){
return (requestInfo >> SF_DESCENDING_SHIFT) & 1;
}
inline
Uint32
ScanFragReq::getTupScanFlag(const Uint32 & requestInfo){
return (requestInfo >> SF_TUP_SCAN_SHIFT) & 1;
}
inline
Uint32
Merge NDB patches into 4.1-clone, below is list of changesets # -------------------------------------------- # 04/04/13 joreland@mysql.com 1.1858.1.1 # Removal of NDBT_Table # -------------------------------------------- # 04/04/13 joreland@mysql.com 1.1858.1.2 # Removal of NDBT_Table # -------------------------------------------- # 04/04/13 joreland@mysql.com 1.1858.1.3 # Fix for crashing AT # -------------------------------------------- # 04/04/13 joreland@mysql.com 1.1858.1.4 # Bug fixes in testIndex # -------------------------------------------- # 04/04/13 joreland@mysql.com 1.1866.1.5 # Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb # into mysql.com:/home/jonas/src/tmp # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1858.1.5 # Fix for takeover when accessing indexes. # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1866.1.6 # Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb # into mysql.com:/home/jonas/src/tmp # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1858.2.1 # Fixed error handling of fire_trigger_ord + lqhkeyref w.r.t indexes # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1858.2.2 # Simple retry mechanism in UTIL # Helps testIndex -n BuildDuring _a lot_ # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1858.2.3 # Misc fixes to test prg. # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1858.2.4 # Allow more retires on application errors # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1858.2.5 # Pass no of rows fetched in SUB_SYNC_CONTINUE_REQ # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1869 # wl1714 # Improve parallellism # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1870 # Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb # into mysql.com:/home/jonas/src/wl1714 # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1866.1.7 # Merge # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1871 # Merge mysql.com:/home/jonas/src/wl1714 # into mysql.com:/home/jonas/src/mysql-4.1-ndb # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1872 # Fix for testScan -n ScanReadError5030 # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1873 # fix testDict -n FragmentType* # -------------------------------------------- # 04/04/14 johan@stingray.(none) 1.1866.2.1 # small fixes # -------------------------------------------- # 04/04/14 johan@stingray.(none) 1.1874 # Merge jandersson@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb # into stingray.(none):/space/bk/rep/mysql-4.1-ndb # -------------------------------------------- # 04/04/14 johan@stingray.(none) 1.1875 # handle rep node as an api node # -------------------------------------------- # 04/04/14 pekka@mysql.com 1.1873.1.1 # Fix for NDBT_Table removal # -------------------------------------------- # 04/04/15 joreland@mysql.com 1.1873.1.2 # Uninitialized var. # -------------------------------------------- # 04/04/15 johan@stingray.(none) 1.1876 # Merge jandersson@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb # into stingray.(none):/space/bk/rep/mysql-4.1-ndb # -------------------------------------------- # 04/04/15 joreland@mysql.com 1.1873.1.3 # Write pid before changing user # (as runas user probably doesn't have permissions on pid-dir) # -------------------------------------------- # -------------------------------------------- # 04/04/15 ndb@mc03.ndb.mysql.com 1.1862.1.3 # Fix printout of varchars # -------------------------------------------- # 04/04/15 ndb@mc03.ndb.mysql.com 1.1877 # Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb # into mc03.ndb.mysql.com:/space/ndb/tmp # -------------------------------------------- # 04/04/15 ndb@mc03.ndb.mysql.com 1.1862.1.4 # Hmm.. don't print attr as many times as length of array # -------------------------------------------- # 04/04/15 ndb@mc03.ndb.mysql.com 1.1878 # Merge mc03.ndb.mysql.com:/space/ndb/mysql-4.1-ndb # into mc03.ndb.mysql.com:/space/ndb/tmp # -------------------------------------------- # 04/04/15 joreland@mysql.com 1.1876.1.1 # Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb # into mysql.com:/home/jonas/src/mysql-4.1-ndb # -------------------------------------------- # 04/04/15 joreland@mysql.com 1.1877.1.1 # Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb # into mysql.com:/home/jonas/src/mysql-4.1-ndb # -------------------------------------------- # 04/04/15 ndb@mc03.ndb.mysql.com 1.1879 # Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb # into mc03.ndb.mysql.com:/space/ndb/tmp # -------------------------------------------- # 04/04/17 joreland@mysql.com 1.1880 # LCP bug when restarting ops take's longer than DIH sending a new lcp ord # Solution: # Send LCP_FRAG_REP after restarting all ops # -------------------------------------------- # 04/04/18 joreland@mysql.com 1.1881 # Missspelled ERROR_INSERT # -------------------------------------------- # 04/04/18 joreland@mysql.com 1.1882 # Added possibility to log only distributed signals # -------------------------------------------- # 04/04/22 joreland@mysql.com 1.1883 # Removed dependancy to libstdc++ # * pure virtual functions "__cxa_pure_virtual" is defined in libstd++ -> # remove all pure virtual functions # -------------------------------------------- # 04/04/23 joreland@mysql.com 1.1884 # Various minor bug fixes for problems found while compiling # with icc # -------------------------------------------- # -------------------------------------------- # 04/04/25 joreland@mysql.com 1.1885 # Removed debug code (joreland:1.1875) # -------------------------------------------- # 04/04/26 ejonore@mc03.ndb.mysql.com 1.1862.1.5 # Lock pages in memory _after_ daemon-mode (exec/fork) # -------------------------------------------- # 04/04/27 ejonore@mc03.ndb.mysql.com 1.1862.1.6 # 1) Trap abort() # 2) StopStart/StopAborted events # 3) warning if memlock fails # 4) use g_logger more often (instead of ndbout) # # -------------------------------------------- # 04/04/27 joreland@mysql.com 1.1886 # bug fix for a bug in wl1714 + software upgrade # -------------------------------------------- # 04/04/27 joreland@mysql.com 1.1887 # Cset exclude: joreland@mysql.com|ChangeSet|20040422160720|05374 # -------------------------------------------- # 04/04/27 joreland@mysql.com 1.1888 # removed libstc++ second try... # -------------------------------------------- # 04/04/28 ejonore@mc03.ndb.mysql.com 1.1862.1.7 # 1) Don't lock FUTURE pages but only current # 2) Do this when SIZEALT has completed # -------------------------------------------- # 04/04/30 joreland@mysql.com 1.1889 # Merge jonas@orca:/home/ndb/releases/mysql-4.1-ndb-3.4.x # into mysql.com:/home/jonas/src/mysql-4.1-ndb # -------------------------------------------- # 04/05/03 ndb@mc03.ndb.mysql.com 1.1862.1.8 # Version update # -------------------------------------------- # 04/05/03 joreland@mysql.com 1.1862.3.1 # Changed restart behavior. # Use "angel" process which monitor "real" process # -------------------------------------------- # 04/05/03 joreland@mysql.com 1.1862.1.9 # Merge jonas@orca:/home/ndb/releases/mysql-4.1-ndb-3.4.x # into mysql.com:/home/jonas/src/mysql-4.1-ndb-3.4.x # -------------------------------------------- # 04/05/03 joreland@mysql.com 1.1890 # Merge B2 fixes # -------------------------------------------- # -------------------------------------------- # 04/05/03 joreland@mysql.com 1.1862.1.10 # Better handling of children terminations # -------------------------------------------- # 04/05/03 joreland@mysql.com 1.1862.1.11 # Fixes for angel-restarting # -------------------------------------------- # 04/05/03 joreland@mysql.com 1.1891 # Merge mysql.com:/home/jonas/src/mysql-4.1-ndb-3.4.x # into mysql.com:/home/jonas/src/mysql-4.1-ndb # -------------------------------------------- # ndb/config/Defs.LINUX.x86.GCC.mk: Merge ndb fixes ndb/examples/ndbapi_async_example/Makefile: Merge ndb fixes ndb/examples/ndbapi_async_example/ndbapi_async.cpp: Merge ndb fixes ndb/examples/ndbapi_scan_example/Makefile: Merge ndb fixes ndb/include/debugger/SignalLoggerManager.hpp: Merge ndb fixes ndb/include/kernel/signaldata/ScanFrag.hpp: Merge ndb fixes ndb/include/ndb_version.h: Merge ndb fixes ndb/include/ndbapi/NdbScanOperation.hpp: Merge ndb fixes ndb/include/util/SocketServer.hpp: Merge ndb fixes ndb/src/common/debugger/SignalLoggerManager.cpp: Merge ndb fixes ndb/src/common/logger/ConsoleLogHandler.cpp: Merge ndb fixes ndb/src/common/portlib/unix/NdbMem.c: Merge ndb fixes ndb/src/common/util/Makefile: Merge ndb fixes ndb/src/common/util/version.c: Merge ndb fixes ndb/src/cw/cpcd/Process.cpp: Merge ndb fixes ndb/src/kernel/blocks/ERROR_codes.txt: Merge ndb fixes ndb/src/kernel/blocks/backup/restore/Restore.cpp: Merge ndb fixes ndb/src/kernel/blocks/backup/restore/Restore.hpp: Merge ndb fixes ndb/src/kernel/blocks/backup/restore/main.cpp: Merge ndb fixes ndb/src/kernel/blocks/cmvmi/Cmvmi.cpp: Merge ndb fixes ndb/src/kernel/blocks/dbdict/Dbdict.cpp: Merge ndb fixes ndb/src/kernel/blocks/dblqh/Dblqh.hpp: Merge ndb fixes ndb/src/kernel/blocks/dblqh/DblqhInit.cpp: Merge ndb fixes ndb/src/kernel/blocks/dblqh/DblqhMain.cpp: Merge ndb fixes ndb/src/kernel/blocks/dbtc/Dbtc.hpp: Merge ndb fixes ndb/src/kernel/blocks/dbtc/DbtcInit.cpp: Merge ndb fixes ndb/src/kernel/blocks/dbtc/DbtcMain.cpp: Merge ndb fixes ndb/src/kernel/blocks/dbutil/DbUtil.cpp: Merge ndb fixes ndb/src/kernel/blocks/dbutil/DbUtil.hpp: Merge ndb fixes ndb/src/kernel/blocks/ndbcntr/NdbcntrMain.cpp: Merge ndb fixes ndb/src/kernel/blocks/ndbfs/Filename.cpp: Merge ndb fixes ndb/src/kernel/blocks/suma/Suma.cpp: Merge ndb fixes ndb/src/kernel/error/Error.hpp: Merge ndb fixes ndb/src/kernel/ndb-main/Main.cpp: Merge ndb fixes ndb/src/kernel/vm/Configuration.cpp: Merge ndb fixes ndb/src/kernel/vm/Configuration.hpp: Merge ndb fixes ndb/src/kernel/vm/DLFifoList.hpp: Merge ndb fixes ndb/src/kernel/vm/Emulator.cpp: Merge ndb fixes ndb/src/kernel/vm/SignalCounter.hpp: Merge ndb fixes ndb/src/kernel/vm/SimulatedBlock.cpp: Merge ndb fixes ndb/src/mgmsrv/MgmtSrvr.cpp: Merge ndb fixes ndb/src/mgmsrv/NodeLogLevel.cpp: Merge ndb fixes ndb/src/ndbapi/ClusterMgr.cpp: Merge ndb fixes ndb/src/ndbapi/Ndberror.cpp: Merge ndb fixes ndb/src/rep/rep_version.hpp: Merge ndb fixes ndb/test/ndbapi/testDict/testDict.cpp: Merge ndb fixes ndb/test/ndbapi/testIndex/testIndex.cpp: Merge ndb fixes ndb/test/ndbapi/testMgm/testMgm.cpp: Merge ndb fixes ndb/test/ndbapi/testScan/testScan.cpp: Merge ndb fixes ndb/test/src/HugoTransactions.cpp: Merge ndb fixes ndb/test/src/NDBT_Tables.cpp: Merge ndb fixes ndb/test/src/NDBT_Test.cpp: Merge ndb fixes ndb/test/src/UtilTransactions.cpp: Merge ndb fixes BitKeeper/etc/logging_ok: Logging to logging@openlogging.org accepted
2004-05-04 11:19:19 +02:00
ScanFragReq::getReadCommittedFlag(const Uint32 & requestInfo){
return (requestInfo >> SF_READ_COMMITTED_SHIFT) & 1;
}
inline
Uint32
ScanFragReq::getAttrLen(const Uint32 & requestInfo){
return (requestInfo >> SF_ATTR_LEN_SHIFT) & SF_ATTR_LEN_MASK;
}
Merge NDB patches into 4.1-clone, below is list of changesets # -------------------------------------------- # 04/04/13 joreland@mysql.com 1.1858.1.1 # Removal of NDBT_Table # -------------------------------------------- # 04/04/13 joreland@mysql.com 1.1858.1.2 # Removal of NDBT_Table # -------------------------------------------- # 04/04/13 joreland@mysql.com 1.1858.1.3 # Fix for crashing AT # -------------------------------------------- # 04/04/13 joreland@mysql.com 1.1858.1.4 # Bug fixes in testIndex # -------------------------------------------- # 04/04/13 joreland@mysql.com 1.1866.1.5 # Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb # into mysql.com:/home/jonas/src/tmp # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1858.1.5 # Fix for takeover when accessing indexes. # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1866.1.6 # Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb # into mysql.com:/home/jonas/src/tmp # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1858.2.1 # Fixed error handling of fire_trigger_ord + lqhkeyref w.r.t indexes # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1858.2.2 # Simple retry mechanism in UTIL # Helps testIndex -n BuildDuring _a lot_ # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1858.2.3 # Misc fixes to test prg. # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1858.2.4 # Allow more retires on application errors # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1858.2.5 # Pass no of rows fetched in SUB_SYNC_CONTINUE_REQ # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1869 # wl1714 # Improve parallellism # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1870 # Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb # into mysql.com:/home/jonas/src/wl1714 # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1866.1.7 # Merge # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1871 # Merge mysql.com:/home/jonas/src/wl1714 # into mysql.com:/home/jonas/src/mysql-4.1-ndb # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1872 # Fix for testScan -n ScanReadError5030 # -------------------------------------------- # 04/04/14 joreland@mysql.com 1.1873 # fix testDict -n FragmentType* # -------------------------------------------- # 04/04/14 johan@stingray.(none) 1.1866.2.1 # small fixes # -------------------------------------------- # 04/04/14 johan@stingray.(none) 1.1874 # Merge jandersson@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb # into stingray.(none):/space/bk/rep/mysql-4.1-ndb # -------------------------------------------- # 04/04/14 johan@stingray.(none) 1.1875 # handle rep node as an api node # -------------------------------------------- # 04/04/14 pekka@mysql.com 1.1873.1.1 # Fix for NDBT_Table removal # -------------------------------------------- # 04/04/15 joreland@mysql.com 1.1873.1.2 # Uninitialized var. # -------------------------------------------- # 04/04/15 johan@stingray.(none) 1.1876 # Merge jandersson@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb # into stingray.(none):/space/bk/rep/mysql-4.1-ndb # -------------------------------------------- # 04/04/15 joreland@mysql.com 1.1873.1.3 # Write pid before changing user # (as runas user probably doesn't have permissions on pid-dir) # -------------------------------------------- # -------------------------------------------- # 04/04/15 ndb@mc03.ndb.mysql.com 1.1862.1.3 # Fix printout of varchars # -------------------------------------------- # 04/04/15 ndb@mc03.ndb.mysql.com 1.1877 # Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb # into mc03.ndb.mysql.com:/space/ndb/tmp # -------------------------------------------- # 04/04/15 ndb@mc03.ndb.mysql.com 1.1862.1.4 # Hmm.. don't print attr as many times as length of array # -------------------------------------------- # 04/04/15 ndb@mc03.ndb.mysql.com 1.1878 # Merge mc03.ndb.mysql.com:/space/ndb/mysql-4.1-ndb # into mc03.ndb.mysql.com:/space/ndb/tmp # -------------------------------------------- # 04/04/15 joreland@mysql.com 1.1876.1.1 # Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb # into mysql.com:/home/jonas/src/mysql-4.1-ndb # -------------------------------------------- # 04/04/15 joreland@mysql.com 1.1877.1.1 # Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb # into mysql.com:/home/jonas/src/mysql-4.1-ndb # -------------------------------------------- # 04/04/15 ndb@mc03.ndb.mysql.com 1.1879 # Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1-ndb # into mc03.ndb.mysql.com:/space/ndb/tmp # -------------------------------------------- # 04/04/17 joreland@mysql.com 1.1880 # LCP bug when restarting ops take's longer than DIH sending a new lcp ord # Solution: # Send LCP_FRAG_REP after restarting all ops # -------------------------------------------- # 04/04/18 joreland@mysql.com 1.1881 # Missspelled ERROR_INSERT # -------------------------------------------- # 04/04/18 joreland@mysql.com 1.1882 # Added possibility to log only distributed signals # -------------------------------------------- # 04/04/22 joreland@mysql.com 1.1883 # Removed dependancy to libstdc++ # * pure virtual functions "__cxa_pure_virtual" is defined in libstd++ -> # remove all pure virtual functions # -------------------------------------------- # 04/04/23 joreland@mysql.com 1.1884 # Various minor bug fixes for problems found while compiling # with icc # -------------------------------------------- # -------------------------------------------- # 04/04/25 joreland@mysql.com 1.1885 # Removed debug code (joreland:1.1875) # -------------------------------------------- # 04/04/26 ejonore@mc03.ndb.mysql.com 1.1862.1.5 # Lock pages in memory _after_ daemon-mode (exec/fork) # -------------------------------------------- # 04/04/27 ejonore@mc03.ndb.mysql.com 1.1862.1.6 # 1) Trap abort() # 2) StopStart/StopAborted events # 3) warning if memlock fails # 4) use g_logger more often (instead of ndbout) # # -------------------------------------------- # 04/04/27 joreland@mysql.com 1.1886 # bug fix for a bug in wl1714 + software upgrade # -------------------------------------------- # 04/04/27 joreland@mysql.com 1.1887 # Cset exclude: joreland@mysql.com|ChangeSet|20040422160720|05374 # -------------------------------------------- # 04/04/27 joreland@mysql.com 1.1888 # removed libstc++ second try... # -------------------------------------------- # 04/04/28 ejonore@mc03.ndb.mysql.com 1.1862.1.7 # 1) Don't lock FUTURE pages but only current # 2) Do this when SIZEALT has completed # -------------------------------------------- # 04/04/30 joreland@mysql.com 1.1889 # Merge jonas@orca:/home/ndb/releases/mysql-4.1-ndb-3.4.x # into mysql.com:/home/jonas/src/mysql-4.1-ndb # -------------------------------------------- # 04/05/03 ndb@mc03.ndb.mysql.com 1.1862.1.8 # Version update # -------------------------------------------- # 04/05/03 joreland@mysql.com 1.1862.3.1 # Changed restart behavior. # Use "angel" process which monitor "real" process # -------------------------------------------- # 04/05/03 joreland@mysql.com 1.1862.1.9 # Merge jonas@orca:/home/ndb/releases/mysql-4.1-ndb-3.4.x # into mysql.com:/home/jonas/src/mysql-4.1-ndb-3.4.x # -------------------------------------------- # 04/05/03 joreland@mysql.com 1.1890 # Merge B2 fixes # -------------------------------------------- # -------------------------------------------- # 04/05/03 joreland@mysql.com 1.1862.1.10 # Better handling of children terminations # -------------------------------------------- # 04/05/03 joreland@mysql.com 1.1862.1.11 # Fixes for angel-restarting # -------------------------------------------- # 04/05/03 joreland@mysql.com 1.1891 # Merge mysql.com:/home/jonas/src/mysql-4.1-ndb-3.4.x # into mysql.com:/home/jonas/src/mysql-4.1-ndb # -------------------------------------------- # ndb/config/Defs.LINUX.x86.GCC.mk: Merge ndb fixes ndb/examples/ndbapi_async_example/Makefile: Merge ndb fixes ndb/examples/ndbapi_async_example/ndbapi_async.cpp: Merge ndb fixes ndb/examples/ndbapi_scan_example/Makefile: Merge ndb fixes ndb/include/debugger/SignalLoggerManager.hpp: Merge ndb fixes ndb/include/kernel/signaldata/ScanFrag.hpp: Merge ndb fixes ndb/include/ndb_version.h: Merge ndb fixes ndb/include/ndbapi/NdbScanOperation.hpp: Merge ndb fixes ndb/include/util/SocketServer.hpp: Merge ndb fixes ndb/src/common/debugger/SignalLoggerManager.cpp: Merge ndb fixes ndb/src/common/logger/ConsoleLogHandler.cpp: Merge ndb fixes ndb/src/common/portlib/unix/NdbMem.c: Merge ndb fixes ndb/src/common/util/Makefile: Merge ndb fixes ndb/src/common/util/version.c: Merge ndb fixes ndb/src/cw/cpcd/Process.cpp: Merge ndb fixes ndb/src/kernel/blocks/ERROR_codes.txt: Merge ndb fixes ndb/src/kernel/blocks/backup/restore/Restore.cpp: Merge ndb fixes ndb/src/kernel/blocks/backup/restore/Restore.hpp: Merge ndb fixes ndb/src/kernel/blocks/backup/restore/main.cpp: Merge ndb fixes ndb/src/kernel/blocks/cmvmi/Cmvmi.cpp: Merge ndb fixes ndb/src/kernel/blocks/dbdict/Dbdict.cpp: Merge ndb fixes ndb/src/kernel/blocks/dblqh/Dblqh.hpp: Merge ndb fixes ndb/src/kernel/blocks/dblqh/DblqhInit.cpp: Merge ndb fixes ndb/src/kernel/blocks/dblqh/DblqhMain.cpp: Merge ndb fixes ndb/src/kernel/blocks/dbtc/Dbtc.hpp: Merge ndb fixes ndb/src/kernel/blocks/dbtc/DbtcInit.cpp: Merge ndb fixes ndb/src/kernel/blocks/dbtc/DbtcMain.cpp: Merge ndb fixes ndb/src/kernel/blocks/dbutil/DbUtil.cpp: Merge ndb fixes ndb/src/kernel/blocks/dbutil/DbUtil.hpp: Merge ndb fixes ndb/src/kernel/blocks/ndbcntr/NdbcntrMain.cpp: Merge ndb fixes ndb/src/kernel/blocks/ndbfs/Filename.cpp: Merge ndb fixes ndb/src/kernel/blocks/suma/Suma.cpp: Merge ndb fixes ndb/src/kernel/error/Error.hpp: Merge ndb fixes ndb/src/kernel/ndb-main/Main.cpp: Merge ndb fixes ndb/src/kernel/vm/Configuration.cpp: Merge ndb fixes ndb/src/kernel/vm/Configuration.hpp: Merge ndb fixes ndb/src/kernel/vm/DLFifoList.hpp: Merge ndb fixes ndb/src/kernel/vm/Emulator.cpp: Merge ndb fixes ndb/src/kernel/vm/SignalCounter.hpp: Merge ndb fixes ndb/src/kernel/vm/SimulatedBlock.cpp: Merge ndb fixes ndb/src/mgmsrv/MgmtSrvr.cpp: Merge ndb fixes ndb/src/mgmsrv/NodeLogLevel.cpp: Merge ndb fixes ndb/src/ndbapi/ClusterMgr.cpp: Merge ndb fixes ndb/src/ndbapi/Ndberror.cpp: Merge ndb fixes ndb/src/rep/rep_version.hpp: Merge ndb fixes ndb/test/ndbapi/testDict/testDict.cpp: Merge ndb fixes ndb/test/ndbapi/testIndex/testIndex.cpp: Merge ndb fixes ndb/test/ndbapi/testMgm/testMgm.cpp: Merge ndb fixes ndb/test/ndbapi/testScan/testScan.cpp: Merge ndb fixes ndb/test/src/HugoTransactions.cpp: Merge ndb fixes ndb/test/src/NDBT_Tables.cpp: Merge ndb fixes ndb/test/src/NDBT_Test.cpp: Merge ndb fixes ndb/test/src/UtilTransactions.cpp: Merge ndb fixes BitKeeper/etc/logging_ok: Logging to logging@openlogging.org accepted
2004-05-04 11:19:19 +02:00
inline
Uint32
ScanFragReq::getScanPrio(const Uint32 & requestInfo){
return (requestInfo >> SF_PRIO_SHIFT) & SF_PRIO_MASK;
}
inline
void
ScanFragReq::setScanPrio(UintR & requestInfo, UintR val){
ASSERT_MAX(val, SF_PRIO_MASK, "ScanFragReq::setScanPrio");
requestInfo |= (val << SF_PRIO_SHIFT);
}
inline
void
ScanFragReq::setLockMode(UintR & requestInfo, UintR val){
ASSERT_MAX(val, SF_LOCK_MODE_MASK, "ScanFragReq::setLockMode");
requestInfo |= (val << SF_LOCK_MODE_SHIFT);
}
inline
void
ScanFragReq::setHoldLockFlag(UintR & requestInfo, UintR val){
ASSERT_BOOL(val, "ScanFragReq::setHoldLockFlag");
requestInfo |= (val << SF_HOLD_LOCK_SHIFT);
}
inline
void
ScanFragReq::setKeyinfoFlag(UintR & requestInfo, UintR val){
ASSERT_BOOL(val, "ScanFragReq::setKeyinfoFlag");
requestInfo |= (val << SF_KEYINFO_SHIFT);
}
inline
void
ScanFragReq::setReadCommittedFlag(UintR & requestInfo, UintR val){
ASSERT_BOOL(val, "ScanFragReq::setReadCommittedFlag");
requestInfo |= (val << SF_READ_COMMITTED_SHIFT);
}
inline
void
ScanFragReq::setRangeScanFlag(UintR & requestInfo, UintR val){
ASSERT_BOOL(val, "ScanFragReq::setRangeScanFlag");
requestInfo |= (val << SF_RANGE_SCAN_SHIFT);
}
ndb: wl-1893: range scanning backwards, ndb kernel ndb/include/kernel/signaldata/AccScan.hpp: wl-1893: range scanning backwards, ndb kernel ndb/include/kernel/signaldata/ScanFrag.hpp: wl-1893: range scanning backwards, ndb kernel ndb/include/kernel/signaldata/ScanTab.hpp: wl-1893: range scanning backwards, ndb kernel ndb/include/ndbapi/NdbIndexScanOperation.hpp: wl-1893: range scanning backwards, ndb kernel ndb/include/ndbapi/NdbScanOperation.hpp: wl-1893: range scanning backwards, ndb kernel ndb/src/common/debugger/signaldata/ScanTab.cpp: wl-1893: range scanning backwards, ndb kernel ndb/src/kernel/blocks/dblqh/Dblqh.hpp: wl-1893: range scanning backwards, ndb kernel ndb/src/kernel/blocks/dblqh/DblqhMain.cpp: wl-1893: range scanning backwards, ndb kernel ndb/src/kernel/blocks/dbtc/DbtcMain.cpp: wl-1893: range scanning backwards, ndb kernel ndb/src/kernel/blocks/dbtux/Dbtux.hpp: wl-1893: range scanning backwards, ndb kernel ndb/src/kernel/blocks/dbtux/DbtuxCmp.cpp: wl-1893: range scanning backwards, ndb kernel ndb/src/kernel/blocks/dbtux/DbtuxDebug.cpp: wl-1893: range scanning backwards, ndb kernel ndb/src/kernel/blocks/dbtux/DbtuxNode.cpp: wl-1893: range scanning backwards, ndb kernel ndb/src/kernel/blocks/dbtux/DbtuxScan.cpp: wl-1893: range scanning backwards, ndb kernel ndb/src/kernel/blocks/dbtux/DbtuxSearch.cpp: wl-1893: range scanning backwards, ndb kernel ndb/src/kernel/blocks/dbtux/DbtuxTree.cpp: wl-1893: range scanning backwards, ndb kernel ndb/src/ndbapi/NdbScanOperation.cpp: wl-1893: range scanning backwards, ndb kernel ndb/tools/select_all.cpp: wl-1893: range scanning backwards, ndb kernel sql/ha_ndbcluster.cc: wl-1893: range scanning backwards, ndb kernel
2004-12-17 10:20:18 +01:00
inline
void
ScanFragReq::setDescendingFlag(UintR & requestInfo, UintR val){
ASSERT_BOOL(val, "ScanFragReq::setDescendingFlag");
requestInfo |= (val << SF_DESCENDING_SHIFT);
}
inline
void
ScanFragReq::setTupScanFlag(UintR & requestInfo, UintR val){
ASSERT_BOOL(val, "ScanFragReq::setTupScanFlag");
requestInfo |= (val << SF_TUP_SCAN_SHIFT);
}
inline
void
ScanFragReq::setAttrLen(UintR & requestInfo, UintR val){
ASSERT_MAX(val, SF_ATTR_LEN_MASK, "ScanFragReq::setAttrLen");
requestInfo |= (val << SF_ATTR_LEN_SHIFT);
}
inline
Uint32
KeyInfo20::setScanInfo(Uint32 opNo, Uint32 scanNo){
First step for WL 2025 Not yet fully working Scan reads work fine, not scan updates ndb/include/kernel/ndb_limits.h: Introducing a new parameter plus increasing the max no of parallel operations per scan in LQH, first step in WL 2025 ndb/include/kernel/signaldata/ScanFrag.hpp: Only need one clientOpPtr Concurrency is batch_size to use in this scan batch_byte_size is max no of bytes sent in a batch first_batch_size is the batch size in the first batch ndb/include/kernel/signaldata/ScanTab.hpp: apiOperationPtr is sent as long signal data batch_byte_size and first_batch_size is needed for further transport to LQH batch size can now be bigger than before ndb/include/kernel/signaldata/TcKeyReq.hpp: More concurrency means more size for scanInfo also in TCKEYREQ ndb/include/ndbapi/NdbReceiver.hpp: New subroutine to caclculate batch size and similar parameters ndb/include/ndbapi/NdbScanOperation.hpp: batch size calculated before sending, not necessary to store anymore ndb/src/common/debugger/signaldata/ScanTab.cpp: Updated signal printer for SCAN_TABREQ ndb/src/kernel/blocks/backup/Backup.cpp: Fixes to make it compile, not fixed for BACKUP being useful yet ndb/src/kernel/blocks/dblqh/Dblqh.hpp: Removed parameters no longer needed and added some new ones. ndb/src/kernel/blocks/dblqh/DblqhMain.cpp: Fix for cmaxAccOps that was using the wrong constant Removed old code New SCAN_FRAGREQ signal ndb/src/kernel/blocks/dbtc/Dbtc.hpp: New variables Removed dead code ndb/src/kernel/blocks/dbtc/DbtcMain.cpp: New SCAN_TABREQ, SCAN_FRAGREQ, SCAN_FRAGCONF and SCAN_TABCONF Fixed some error handling to be more efficient ndb/src/kernel/blocks/suma/Suma.cpp: Fixes to make it compile, not yet usable for SUMA features ndb/src/kernel/vm/Configuration.cpp: Fix for wrong constant ndb/src/ndbapi/NdbApiSignal.cpp: Fix for not using constants ndb/src/ndbapi/NdbApiSignal.hpp: Added possibility to get signal sending node from signal ndb/src/ndbapi/NdbConnectionScan.cpp: Moved declaration ndb/src/ndbapi/NdbReceiver.cpp: New routine to calculate batch_size etc. ndb/src/ndbapi/NdbScanOperation.cpp: Various fixes for sending SCAN_TABREQ and other stuff
2004-08-09 17:43:15 +02:00
ASSERT_MAX(opNo, 1023, "KeyInfo20::setScanInfo");
ASSERT_MAX(scanNo, 255, "KeyInfo20::setScanInfo");
return (opNo << 8) + scanNo;
}
inline
Uint32
KeyInfo20::getScanNo(Uint32 scanInfo){
return scanInfo & 0xFF;
}
inline
Uint32
KeyInfo20::getScanOp(Uint32 scanInfo){
return (scanInfo >> 8) & 0x3FF;
}
#endif