Commit 674e6e95 authored by unknown's avatar unknown

ndb - dbacc -

  fix gcc4 compile error


storage/ndb/src/kernel/blocks/dbacc/DbaccMain.cpp:
  add block to remove gcc compiler error
storage/ndb/src/kernel/blocks/dblqh/DblqhMain.cpp:
  add jamEntry
parent 3f950c92
...@@ -1262,7 +1262,8 @@ Dbacc::startNext(Signal* signal, OperationrecPtr lastOp) ...@@ -1262,7 +1262,8 @@ Dbacc::startNext(Signal* signal, OperationrecPtr lastOp)
ptrCheckGuard(nextOp, coprecsize, operationrec); ptrCheckGuard(nextOp, coprecsize, operationrec);
nextbits = nextOp.p->m_op_bits; nextbits = nextOp.p->m_op_bits;
bool same = nextOp.p->is_same_trans(lastOp.p); {
const bool same = nextOp.p->is_same_trans(lastOp.p);
if (!same && ((opbits & Operationrec::OP_ACC_LOCK_MODE) || if (!same && ((opbits & Operationrec::OP_ACC_LOCK_MODE) ||
(nextbits & Operationrec::OP_LOCK_MODE))) (nextbits & Operationrec::OP_LOCK_MODE)))
...@@ -1284,6 +1285,7 @@ Dbacc::startNext(Signal* signal, OperationrecPtr lastOp) ...@@ -1284,6 +1285,7 @@ Dbacc::startNext(Signal* signal, OperationrecPtr lastOp)
jam(); jam();
goto upgrade; goto upgrade;
} }
}
/** /**
* all shared lock... * all shared lock...
......
...@@ -9063,6 +9063,7 @@ Dblqh::readPrimaryKeys(ScanRecord *scanP, TcConnectionrec *tcConP, Uint32 *dst) ...@@ -9063,6 +9063,7 @@ Dblqh::readPrimaryKeys(ScanRecord *scanP, TcConnectionrec *tcConP, Uint32 *dst)
} }
int ret = c_tup->accReadPk(tableId, fragId, fragPageId, pageIndex, dst, false); int ret = c_tup->accReadPk(tableId, fragId, fragPageId, pageIndex, dst, false);
jamEntry();
if(0) if(0)
ndbout_c("readPrimaryKeys(table: %d fragment: %d [ %d %d ] -> %d", ndbout_c("readPrimaryKeys(table: %d fragment: %d [ %d %d ] -> %d",
tableId, fragId, fragPageId, pageIndex, ret); tableId, fragId, fragPageId, pageIndex, ret);
...@@ -9434,6 +9435,11 @@ Uint32 Dblqh::initScanrec(const ScanFragReq* scanFragReq) ...@@ -9434,6 +9435,11 @@ Uint32 Dblqh::initScanrec(const ScanFragReq* scanFragReq)
scanptr.p->m_max_batch_size_rows = max_rows; scanptr.p->m_max_batch_size_rows = max_rows;
scanptr.p->m_max_batch_size_bytes = max_bytes; scanptr.p->m_max_batch_size_bytes = max_bytes;
#if 0
if (! rangeScan)
tupScan = 1;
#endif
if (! rangeScan && ! tupScan) if (! rangeScan && ! tupScan)
scanptr.p->scanBlockref = tcConnectptr.p->tcAccBlockref; scanptr.p->scanBlockref = tcConnectptr.p->tcAccBlockref;
else if (! tupScan) else if (! tupScan)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment