Commit 5a6ad716 authored by Bradley C. Kuszmaul's avatar Bradley C. Kuszmaul

add db_version

git-svn-id: file:///svn/tokudb@452 c7de825b-a66e-492c-adef-691d508d4ae1
parent e7ab3b89
...@@ -9,7 +9,7 @@ extern "C" { ...@@ -9,7 +9,7 @@ extern "C" {
#define DB_VERSION_MINOR 1 #define DB_VERSION_MINOR 1
#define DB_VERSION_PATCH 24 #define DB_VERSION_PATCH 24
#ifndef _TOKUDB_WRAP_H #ifndef _TOKUDB_WRAP_H
#define DB_VERSION_STRING "Tokutek: TokuDB" #define DB_VERSION_STRING "Tokutek: TokuDB 4.1.24"
#else #else
#define DB_VERSION_STRING "Tokutek: TokuDB (wrapped bdb)" #define DB_VERSION_STRING "Tokutek: TokuDB (wrapped bdb)"
#endif #endif
...@@ -202,6 +202,7 @@ struct __toku_dbt { ...@@ -202,6 +202,7 @@ struct __toku_dbt {
int db_env_create(DB_ENV **, u_int32_t); int db_env_create(DB_ENV **, u_int32_t);
int db_create(DB **, DB_ENV *, u_int32_t); int db_create(DB **, DB_ENV *, u_int32_t);
char *db_strerror(int); char *db_strerror(int);
const char *db_version(int*,int *,int *);
int log_compare (const DB_LSN*, const DB_LSN *); int log_compare (const DB_LSN*, const DB_LSN *);
#if defined(__cplusplus) #if defined(__cplusplus)
} }
......
...@@ -239,6 +239,7 @@ int main (int argc __attribute__((__unused__)), char *argv[] __attribute__((__un ...@@ -239,6 +239,7 @@ int main (int argc __attribute__((__unused__)), char *argv[] __attribute__((__un
printf("int db_env_create(DB_ENV **, u_int32_t);\n"); printf("int db_env_create(DB_ENV **, u_int32_t);\n");
printf("int db_create(DB **, DB_ENV *, u_int32_t);\n"); printf("int db_create(DB **, DB_ENV *, u_int32_t);\n");
printf("char *db_strerror(int);\n"); printf("char *db_strerror(int);\n");
printf("const char *db_version(int*,int *,int *);\n");
printf("int log_compare (const DB_LSN*, const DB_LSN *);\n"); printf("int log_compare (const DB_LSN*, const DB_LSN *);\n");
printf("#if defined(__cplusplus)\n}\n#endif\n"); printf("#if defined(__cplusplus)\n}\n#endif\n");
printf("#endif\n"); printf("#endif\n");
......
...@@ -9,7 +9,7 @@ extern "C" { ...@@ -9,7 +9,7 @@ extern "C" {
#define DB_VERSION_MINOR 1 #define DB_VERSION_MINOR 1
#define DB_VERSION_PATCH 24 #define DB_VERSION_PATCH 24
#ifndef _TOKUDB_WRAP_H #ifndef _TOKUDB_WRAP_H
#define DB_VERSION_STRING "Tokutek: TokuDB" #define DB_VERSION_STRING "Tokutek: TokuDB 4.1.24"
#else #else
#define DB_VERSION_STRING "Tokutek: TokuDB (wrapped bdb)" #define DB_VERSION_STRING "Tokutek: TokuDB (wrapped bdb)"
#endif #endif
...@@ -202,6 +202,7 @@ struct __toku_dbt { ...@@ -202,6 +202,7 @@ struct __toku_dbt {
int db_env_create(DB_ENV **, u_int32_t); int db_env_create(DB_ENV **, u_int32_t);
int db_create(DB **, DB_ENV *, u_int32_t); int db_create(DB **, DB_ENV *, u_int32_t);
char *db_strerror(int); char *db_strerror(int);
const char *db_version(int*,int *,int *);
int log_compare (const DB_LSN*, const DB_LSN *); int log_compare (const DB_LSN*, const DB_LSN *);
#if defined(__cplusplus) #if defined(__cplusplus)
} }
......
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