Commit ef73b1e1 authored by Yoni Fogel's avatar Yoni Fogel

Added Dbt.get_ulen and Dbt.set_ulen

Modified test1 to test new functions and some of the older ones.
Addresses #197

git-svn-id: file:///svn/tokudb@1285 c7de825b-a66e-492c-adef-691d508d4ae1
parent d89f8a43
...@@ -22,6 +22,9 @@ class Dbt : private DBT ...@@ -22,6 +22,9 @@ class Dbt : private DBT
u_int32_t get_flags() const { return flags; } u_int32_t get_flags() const { return flags; }
void set_flags(u_int32_t f) { flags = f; } void set_flags(u_int32_t f) { flags = f; }
u_int32_t get_ulen() const { return ulen; }
void set_ulen(u_int32_t p) { ulen = p; }
DBT *get_DBT(void) { return (DBT*)this; } DBT *get_DBT(void) { return (DBT*)this; }
Dbt(void */*data*/, u_int32_t /*size*/); Dbt(void */*data*/, u_int32_t /*size*/);
...@@ -61,6 +64,7 @@ class Db { ...@@ -61,6 +64,7 @@ class Db {
int get_flags(u_int32_t *); int get_flags(u_int32_t *);
int set_flags(u_int32_t); int set_flags(u_int32_t);
int set_pagesize(u_int32_t); int set_pagesize(u_int32_t);
int remove(const char *file, const char *database, u_int32_t flags);
private: private:
DB *the_db; DB *the_db;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment