mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
added force send interface to scan
prepared for using query cache in ndb ndb/include/ndbapi/NdbIndexScanOperation.hpp: added force send interface to scan ndb/include/ndbapi/NdbResultSet.hpp: added force send interface to scan ndb/include/ndbapi/NdbScanOperation.hpp: added force send interface to scan ndb/src/ndbapi/NdbResultSet.cpp: added force send interface to scan ndb/src/ndbapi/NdbScanOperation.cpp: added force send interface to scan
This commit is contained in:
@ -90,11 +90,11 @@ protected:
|
||||
NdbScanOperation(Ndb* aNdb);
|
||||
virtual ~NdbScanOperation();
|
||||
|
||||
int nextResult(bool fetchAllowed = true);
|
||||
int nextResult(bool fetchAllowed = true, bool forceSend = false);
|
||||
virtual void release();
|
||||
|
||||
void closeScan();
|
||||
int close_impl(class TransporterFacade*);
|
||||
void closeScan(bool forceSend = false);
|
||||
int close_impl(class TransporterFacade*, bool forceSend = false);
|
||||
|
||||
// Overloaded methods from NdbCursorOperation
|
||||
int executeCursor(int ProcessorId);
|
||||
@ -103,6 +103,7 @@ protected:
|
||||
int init(const NdbTableImpl* tab, NdbConnection* myConnection);
|
||||
int prepareSend(Uint32 TC_ConnectPtr, Uint64 TransactionId);
|
||||
int doSend(int ProcessorId);
|
||||
void checkForceSend(bool forceSend);
|
||||
|
||||
virtual void setErrorCode(int aErrorCode);
|
||||
virtual void setErrorCodeAbort(int aErrorCode);
|
||||
@ -138,7 +139,7 @@ protected:
|
||||
Uint32 m_sent_receivers_count; // NOTE needs mutex to access
|
||||
NdbReceiver** m_sent_receivers; // receive thread puts them here
|
||||
|
||||
int send_next_scan(Uint32 cnt, bool close);
|
||||
int send_next_scan(Uint32 cnt, bool close, bool forceSend = false);
|
||||
void receiver_delivered(NdbReceiver*);
|
||||
void receiver_completed(NdbReceiver*);
|
||||
void execCLOSE_SCAN_REP();
|
||||
@ -148,7 +149,7 @@ protected:
|
||||
|
||||
Uint32 m_ordered;
|
||||
|
||||
int restart();
|
||||
int restart(bool forceSend = false);
|
||||
};
|
||||
|
||||
inline
|
||||
|
Reference in New Issue
Block a user