summaryrefslogtreecommitdiff
path: root/sql/ha_ndbcluster.h
diff options
context:
space:
mode:
authorunknown <pekka@mysql.com>2006-01-25 22:22:50 +0100
committerunknown <pekka@mysql.com>2006-01-25 22:22:50 +0100
commit465960c2e3a5c9bf69e4ac25aec56081ec4edc4a (patch)
tree0ef14e598480fb350ac12445849e4273462e64c1 /sql/ha_ndbcluster.h
parent97c6ff7bf2d1d85c3e835ff924aec58a77029287 (diff)
downloadmariadb-git-465960c2e3a5c9bf69e4ac25aec56081ec4edc4a.tar.gz
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
Diffstat (limited to 'sql/ha_ndbcluster.h')
-rw-r--r--sql/ha_ndbcluster.h8
1 files changed, 8 insertions, 0 deletions
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 <NdbApi.hpp>
#include <ndbapi_limits.h>
@@ -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