mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 23:04:20 +01:00
[t:4934] Merge 44292 from ../tokudb.4934-branch-from.6.0.0. Refs #4934.
git-svn-id: file:///svn/toku/tokudb@44634 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
2f8410fe0b
commit
5a66d06efb
1 changed files with 6 additions and 6 deletions
|
@ -51,16 +51,16 @@ int madvise (void *addr, size_t length, int advice) {
|
|||
char *m=mem;
|
||||
if (counter==0) {
|
||||
assert(m+4096==a);
|
||||
assert(length=16*1024*1024-4096);
|
||||
assert(advice=MADV_DONTNEED);
|
||||
assert(length==16*1024*1024-4096);
|
||||
assert(advice==MADV_DONTNEED);
|
||||
} else if (counter==1) {
|
||||
assert(m+2*1024*1024+4096==a);
|
||||
assert(length=16*1024*1024-2*1024*1024-4096);
|
||||
assert(advice=MADV_DONTNEED);
|
||||
assert(length==16*1024*1024-2*1024*1024-4096);
|
||||
assert(advice==MADV_DONTNEED);
|
||||
} else if (counter==2) {
|
||||
assert(m+4*1024*1024+4096==a);
|
||||
assert(length=16*1024*1024-4*1024*1024-4096);
|
||||
assert(advice=MADV_DONTNEED);
|
||||
assert(length==16*1024*1024-4*1024*1024-4096);
|
||||
assert(advice==MADV_DONTNEED);
|
||||
} else {
|
||||
printf("madvise(%p, 0x%lx, %d)\n", addr, length, advice);
|
||||
abort();
|
||||
|
|
Loading…
Add table
Reference in a new issue