Commit 3705bf9d authored by unknown's avatar unknown
Browse files

wl2240 - ndb - new testcase for validating startTransation with hint


ndb/include/ndbapi/NdbDictionary.hpp:
  NdbDictionaryColumn::getSizeInBytes
ndb/include/ndbapi/NdbOperation.hpp:
  NdbOperation::getTable
ndb/include/ndbapi/NdbTransaction.hpp:
  Make getConnectionNodeId public (for test programs)
ndb/include/util/Base64.hpp:
  base64(void*)
ndb/src/common/util/Base64.cpp:
  base64(void*)
ndb/src/kernel/blocks/ERROR_codes.txt:
  New error code for REF'ing non-local TCKEYREQ
ndb/src/kernel/blocks/dbdih/DbdihMain.cpp:
  Easy clearing of ERROR_INSERT
ndb/src/kernel/blocks/dbtc/DbtcMain.cpp:
  New error code for REF'ing non-local TCKEYREQ
ndb/src/ndbapi/NdbDictionary.cpp:
  NdbDictionaryColumn::getSizeInBytes
ndb/src/ndbapi/NdbDictionaryImpl.cpp:
  If m_noIfDistKyes == 0, then each PK is dist key
ndb/src/ndbapi/NdbOperation.cpp:
  NdbOperation::getTable
ndb/src/ndbapi/NdbOperationSearch.cpp:
  remove d-key handling for pk ops
ndb/test/include/HugoCalculator.hpp:
  remove unimpletemented methods
ndb/test/include/HugoOperations.hpp:
  1) HugoOperation::setTransaction 
  2) Type independant value handling
  3) Some more util methods
ndb/test/ndbapi/testPartitioning.cpp:
  new testcase for validating startTransation with hint
ndb/test/run-test/atrt-mysql-test-run:
  fix checks of return values
ndb/test/src/HugoCalculator.cpp:
  Better generation of values
   -- depends on fact that srand(K), rand() == srand(K), rand()
  Generate string with base64
ndb/test/src/HugoOperations.cpp:
  1) HugoOperation::setTransaction 
  2) Type independant value handling
  3) Some more util methods
parent ae9b0794
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -442,6 +442,8 @@ public:
    static const Column * COMMIT_COUNT;
    static const Column * ROW_SIZE;
    static const Column * RANGE_NO;
    
    int getSizeInBytes() const;
#endif
    
  private:
+5 −0
Original line number Diff line number Diff line
@@ -709,6 +709,11 @@ public:
   */
  const char* getTableName() const;

  /**
   * Get table object for this operation
   */
  const NdbDictionary::Table * getTable() const;

  /** @} *********************************************************************/

#ifndef DOXYGEN_SHOULD_SKIP_INTERNAL
+5 −1
Original line number Diff line number Diff line
@@ -560,6 +560,11 @@ public:
   * ops are used (read, insert, update, delete).
   */
  int executePendingBlobOps(Uint8 flags = 0xFF);

  /**
   * Get nodeId of TC for this transaction
   */
  Uint32 getConnectedNodeId(); // Get Connected node id
#endif

private:						
@@ -593,7 +598,6 @@ private:
   */
  void setConnectedNodeId( Uint32 nodeId, Uint32 sequence); 

  Uint32	getConnectedNodeId();	          // Get Connected node id
  void		setMyBlockReference( int );	  // Set my block refrerence
  void		setTC_ConnectPtr( Uint32 );	  // Sets TC Connect pointer
  int		getTC_ConnectPtr();		  // Gets TC Connect pointer
+1 −0
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@
#include <BaseString.hpp>

int base64_encode(const UtilBuffer &src, BaseString &dst);
int base64_encode(const void * s, size_t src_len, BaseString &dst);
int base64_decode(const BaseString &src, UtilBuffer &dst);
int base64_decode(const char * s, size_t len, UtilBuffer &dst);

+9 −4
Original line number Diff line number Diff line
@@ -22,11 +22,16 @@ static char base64_table[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
                             "0123456789+/";

int
base64_encode(const UtilBuffer &src, BaseString &dst) {
  const unsigned char *s = (const unsigned char *)src.get_data();
base64_encode(const UtilBuffer &src, BaseString &dst) 
{
  return base64_encode(src.get_data(), src.length(), dst);
}

int
base64_encode(const void * _s, size_t src_len, BaseString &dst) {
  const unsigned char * s = (const unsigned char*)_s;
  size_t i = 0;
  size_t len = 0;
  size_t src_len = src.length();
  while(i < src_len) {
    if(len == 76){
      len = 0;
Loading