mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Fix simple/dirty read handling
ndb/include/kernel/signaldata/TcKeyConf.hpp: A bit for differenciating between "real" tckey conf and simple read conf ndb/include/ndbapi/Ndb.hpp: Removed/ifdef's unused stuff ndb/include/ndbapi/NdbConnection.hpp: Added bitmask that keeps track of used nodes when a transaction can be dependant on several nodes ndb/include/ndbapi/NdbOperation.hpp: removed unused methods ndb/include/ndbapi/NdbReceiver.hpp: Tween execTCOPCONF to handle TcKeyConf::SimpleReadBit ndb/src/common/debugger/signaldata/TcKeyConf.cpp: Update printer ndb/src/kernel/blocks/dblqh/Dblqh.hpp: removed unused define ndb/src/ndbapi/NdbApiSignal.cpp: Fix length of TC_COMMITREQ ndb/test/ndbapi/testOperations.cpp: fix simple/dirty read
This commit is contained in:
@ -19,6 +19,7 @@
|
||||
#ifndef DOXYGEN_SHOULD_SKIP_INTERNAL // Not part of public interface
|
||||
|
||||
#include <ndb_types.h>
|
||||
#include <ndb_global.h>
|
||||
|
||||
class Ndb;
|
||||
class NdbReceiver
|
||||
@ -127,7 +128,8 @@ int
|
||||
NdbReceiver::execTCOPCONF(Uint32 len){
|
||||
Uint32 tmp = m_received_result_length;
|
||||
m_expected_result_length = len;
|
||||
return (tmp == len ? 1 : 0);
|
||||
assert(!(tmp && !len));
|
||||
return ((bool)len ^ (bool)tmp ? 0 : 1);
|
||||
}
|
||||
|
||||
inline
|
||||
|
Reference in New Issue
Block a user