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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user