Commit c2d77832 authored by Yoni Fogel's avatar Yoni Fogel

Addresses #1531 More porting for windows

git-svn-id: file:///svn/toku/tokudb@10477 c7de825b-a66e-492c-adef-691d508d4ae1
parent 52819f0e
...@@ -43,9 +43,11 @@ WINDOWS_DONTRUN_TESTS = \ ...@@ -43,9 +43,11 @@ WINDOWS_DONTRUN_TESTS = \
WINDOWS_BDB_DONTRUN_TESTS = \ WINDOWS_BDB_DONTRUN_TESTS = \
diskfull \ diskfull \
test_groupcommit_count \ test_groupcommit_count \
test_set_func_malloc \
#\ ends prev line #\ ends prev line
#diskfull: windows bdb is missing db_env_set_func_pwrite and db_env_set_func_write #diskfull: windows bdb is missing db_env_set_func_pwrite and db_env_set_func_write
#test_groupcommit_count: windows bdb is missing db_env_set_func_fsync #test_groupcommit_count: windows bdb is missing db_env_set_func_fsync
#test_set_func_malloc: windows bdb (some) are missing db_env_set_func_(malloc|realloc|free)
ifeq ($(OS_CHOICE),windows) ifeq ($(OS_CHOICE),windows)
TDB_TESTS = $(patsubst %.c,%.tdb$(BINSUF),$(filter-out $(patsubst %,%.c,$(WINDOWS_DONTRUN_TESTS)),$(SRCS))) TDB_TESTS = $(patsubst %.c,%.tdb$(BINSUF),$(filter-out $(patsubst %,%.c,$(WINDOWS_DONTRUN_TESTS)),$(SRCS)))
...@@ -157,15 +159,16 @@ ifdef BDBDIR ...@@ -157,15 +159,16 @@ ifdef BDBDIR
%.bdb$(BINSUF): RPATH_DIRS=$(BDBDIR)/lib %.bdb$(BINSUF): RPATH_DIRS=$(BDBDIR)/lib
endif endif
ifeq ($(DEBUG),0) ifeq ($(DEBUG),0)
WINDOWS_BDB_LIB_NAME=libdb$(BDBVER).$(SOEXT) WINDOWS_BDB_LIB_NAME=libdb.$(SOEXT)
$(WINDOWS_BDB_LIB_NAME): $(WINDOWS_BDB_LIB_NAME):
cp $(BDBDIR)/bin/$(WINDOWS_BDB_LIB_NAME) $@ cp $(BDBDIR)/lib/libdb[0-9][0-9].$(SOEXT) ./
else else
WINDOWS_BDB_LIB_NAME=libdb$(BDBVER)d.$(SOEXT) WINDOWS_BDB_LIB_NAME=libdbd.$(SOEXT)
$(WINDOWS_BDB_LIB_NAME): $(WINDOWS_BDB_LIB_NAME):
cp $(BDBDIR)/bin/debug/$(WINDOWS_BDB_LIB_NAME) $@ cp $(BDBDIR)/lib/libdb[0-9][0-9]d.$(SOEXT) ./
endif endif
%.bdb$(BINSUF): DLINK_FILES=$(BDBDIR)/lib/$(WINDOWS_BDB_LIB_NAME) %.bdb$(BINSUF): DLINK_FILES=$(BDBDIR)/lib/$(WINDOWS_BDB_LIB_NAME)
#empty
else else
WINDOWS_BDB_LIB_NAME= WINDOWS_BDB_LIB_NAME=
#linux #linux
......
...@@ -122,7 +122,7 @@ main(int argc, const char *argv[]) { ...@@ -122,7 +122,7 @@ main(int argc, const char *argv[]) {
#if IS_TDB && (defined(_WIN32) || defined(_WIN64)) #if IS_TDB && (defined(_WIN32) || defined(_WIN64))
toku_ydb_init(); toku_ydb_init();
#endif #endif
#if !IS_TDB #if !IS_TDB && DB_VERSION_MINOR==4 && DB_VERSION_MINOR == 7
r = db_env_set_func_malloc(toku_malloc); assert(r==0); r = db_env_set_func_malloc(toku_malloc); assert(r==0);
r = db_env_set_func_free(toku_free); assert(r==0); r = db_env_set_func_free(toku_free); assert(r==0);
r = db_env_set_func_realloc(toku_realloc); assert(r==0); r = db_env_set_func_realloc(toku_realloc); assert(r==0);
......
...@@ -5,8 +5,7 @@ ...@@ -5,8 +5,7 @@
/* Is it feasible to run 4 billion transactions in one test in the regression tests? */ /* Is it feasible to run 4 billion transactions in one test in the regression tests? */
#include <db.h> #include <db.h>
#include <sys/stat.h> #include <sys/stat.h>
#include "log.h"
extern void toku_set_lsn_increment (uint64_t incr);
static void static void
four_billion_subtransactions (int do_something_in_children, int use_big_increment) { four_billion_subtransactions (int do_something_in_children, int use_big_increment) {
......
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