1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-01 17:39:21 +03:00

Merge 2.0.0 back into main

svn merge --accept=postpone -r 12123:12373 ../../mysql.branches/2.0.0/tokudb/

git-svn-id: file:///svn/toku/tokudb@12375 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
Yoni Fogel
2013-04-16 23:57:53 -04:00
parent d3a3ad5f3b
commit bc9fd74c80
55 changed files with 444 additions and 189 deletions

View File

@@ -14,6 +14,29 @@
#include <assert.h>
#include <toku_portability.h>
#include "toku_os.h"
#include <malloc.h>
static int
toku_mallopt_init(void) {
int r = mallopt(M_MMAP_THRESHOLD, 1024*64); // 64K and larger should be malloced with mmap().
return r;
}
int
toku_portability_init(void) {
int r = 0;
if (r==0) {
int success = toku_mallopt_init(); //mallopt returns 1 on success, 0 on error
assert(success);
}
return r;
}
int
toku_portability_destroy(void) {
int r = 0;
return r;
}
int
toku_os_getpid(void) {