summaryrefslogtreecommitdiff
path: root/storage/tokudb/ft-index/ft/tests/test.h
diff options
context:
space:
mode:
Diffstat (limited to 'storage/tokudb/ft-index/ft/tests/test.h')
-rw-r--r--storage/tokudb/ft-index/ft/tests/test.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/storage/tokudb/ft-index/ft/tests/test.h b/storage/tokudb/ft-index/ft/tests/test.h
index 5d0c3bbd076..4a1bd64354f 100644
--- a/storage/tokudb/ft-index/ft/tests/test.h
+++ b/storage/tokudb/ft-index/ft/tests/test.h
@@ -50,6 +50,7 @@ UNIVERSITY PATENT NOTICE:
PATENT MARKING NOTICE:
This software is covered by US Patent No. 8,185,551.
+ This software is covered by US Patent No. 8,489,638.
PATENT RIGHTS GRANT:
@@ -349,6 +350,14 @@ public:
}
};
+UU()
+static void copy_dbt(DBT *dest, const DBT *src) {
+ assert(dest->flags & DB_DBT_REALLOC);
+ dest->data = toku_realloc(dest->data, src->size);
+ dest->size = src->size;
+ memcpy(dest->data, src->data, src->size);
+}
+
int verbose=0;
static inline void