From 465960c2e3a5c9bf69e4ac25aec56081ec4edc4a Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 25 Jan 2006 22:22:50 +0100 Subject: ndb - wl#2972 rbr blobs: write blob data to binlog mysql-test/t/disabled.def: rbr blobs: write data + dict cache workarounds sql/ha_ndbcluster.cc: rbr blobs: write data + dict cache workarounds sql/ha_ndbcluster.h: rbr blobs: write data + dict cache workarounds sql/ha_ndbcluster_binlog.cc: rbr blobs: write data + dict cache workarounds storage/ndb/include/ndbapi/NdbDictionary.hpp: rbr blobs: write data + dict cache workarounds storage/ndb/src/ndbapi/NdbBlob.cpp: rbr blobs: write data + dict cache workarounds storage/ndb/src/ndbapi/NdbDictionary.cpp: rbr blobs: write data + dict cache workarounds storage/ndb/src/ndbapi/NdbDictionaryImpl.cpp: rbr blobs: write data + dict cache workarounds storage/ndb/src/ndbapi/NdbDictionaryImpl.hpp: rbr blobs: write data + dict cache workarounds --- sql/ha_ndbcluster.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'sql/ha_ndbcluster.h') diff --git a/sql/ha_ndbcluster.h b/sql/ha_ndbcluster.h index 73b1b27ede2..a62356d41ab 100644 --- a/sql/ha_ndbcluster.h +++ b/sql/ha_ndbcluster.h @@ -25,6 +25,9 @@ #pragma interface /* gcc class implementation */ #endif +/* Blob tables and events are internal to NDB and must never be accessed */ +#define IS_NDB_BLOB_PREFIX(A) is_prefix(A, "NDB$BLOB") + #include #include @@ -78,6 +81,10 @@ typedef struct ndb_index_data { typedef union { const NdbRecAttr *rec; NdbBlob *blob; void *ptr; } NdbValue; +int get_ndb_blobs_value(TABLE* table, NdbValue* value_array, + byte*& buffer, uint& buffer_size, + my_ptrdiff_t ptrdiff); + typedef enum { NSS_INITIAL= 0, NSS_DROPPED, @@ -114,6 +121,7 @@ typedef struct st_ndbcluster_share { #ifdef HAVE_NDB_BINLOG /* NDB_SHARE.flags */ #define NSF_HIDDEN_PK 1 /* table has hidden primary key */ +#define NSF_BLOB_FLAG 2 /* table has blob attributes */ #define NSF_NO_BINLOG 4 /* table should not be binlogged */ #endif -- cgit v1.2.1