Commit dec35a62 authored by Yoni Fogel's avatar Yoni Fogel

[t:2499] Windows port.

ECANCELED does not exist in windows
made some functions static

git-svn-id: file:///svn/toku/tokudb@19939 c7de825b-a66e-492c-adef-691d508d4ae1
parent 6c57f58e
...@@ -71,11 +71,11 @@ DBT old_inames[MAX_DBS]; ...@@ -71,11 +71,11 @@ DBT old_inames[MAX_DBS];
DBT new_inames[MAX_DBS]; DBT new_inames[MAX_DBS];
int count_temp(char * dirname); static int count_temp(char * dirname);
void get_inames(DBT* inames, DB** dbs); static void get_inames(DBT* inames, DB** dbs);
int verify_file(char * dirname, char * filename); static int verify_file(char * dirname, char * filename);
void assert_inames_missing(DBT* inames); static void assert_inames_missing(DBT* inames);
ssize_t bad_write(int, const void *, size_t); static ssize_t bad_write(int, const void *, size_t);
int fwrite_count = 0; int fwrite_count = 0;
int fwrite_count_nominal = 0; // number of fwrite calls for normal operation, initially zero int fwrite_count_nominal = 0; // number of fwrite calls for normal operation, initially zero
......
...@@ -183,6 +183,9 @@ static void check_results(DB **dbs) ...@@ -183,6 +183,9 @@ static void check_results(DB **dbs)
static void *expect_poll_void = &expect_poll_void; static void *expect_poll_void = &expect_poll_void;
static uint64_t poll_count=0; static uint64_t poll_count=0;
static uint64_t bomb_after_poll_count=UINT64_MAX; static uint64_t bomb_after_poll_count=UINT64_MAX;
#if TOKU_WINDOWS
#define ECANCELED (-1)
#endif
static int poll_function (void *extra, float progress) { static int poll_function (void *extra, float progress) {
if (0) { if (0) {
static int did_one=0; static int did_one=0;
......
...@@ -68,10 +68,10 @@ static char const * const new_iname_str[NUM_DBS] = {"qo_0000_35_c_L_0.tokudb", ...@@ -68,10 +68,10 @@ static char const * const new_iname_str[NUM_DBS] = {"qo_0000_35_c_L_0.tokudb",
"qo_0004_35_c_L_4.tokudb"}; "qo_0004_35_c_L_4.tokudb"};
int count_temp(char * dirname); static int count_temp(char * dirname);
void get_inames(DBT* inames, DB** dbs); static void get_inames(DBT* inames, DB** dbs);
int verify_file(char const * const dirname, char const * const filename); static int verify_file(char const * const dirname, char const * const filename);
int print_dir(char * dirname); static int print_dir(char * dirname);
// return number of temp files // return number of temp files
int int
......
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