Commit 926dc758 authored by Yoni Fogel's avatar Yoni Fogel

Addresses #2194 refs[t:2194] Windows port work: set default for 'open' to be binary.

Set open of logfiles to be binary

git-svn-id: file:///svn/toku/tokudb@15986 c7de825b-a66e-492c-adef-691d508d4ae1
parent d15ff970
......@@ -50,7 +50,7 @@ static int lc_open_logfile(TOKULOGCURSOR lc, int index) {
int r=0;
assert( !lc->is_open );
if( index == -1 || index >= lc->n_logfiles) return DB_NOTFOUND;
lc->cur_fp = fopen(lc->logfiles[index], "r");
lc->cur_fp = fopen(lc->logfiles[index], "rb");
if ( lc->cur_fp == NULL )
return DB_NOTFOUND;
// position fp past header
......
......@@ -44,6 +44,8 @@ toku_portability_init(void) {
r = toku_malloc_init();
if (r==0)
r = toku_pthread_win32_init();
if (r==0)
_fmode = _O_BINARY; //Default open file is BINARY
return r;
}
......
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