hbtrie_test.cc (e6449f52) hbtrie_test.cc (2534ac38)
1#include <stdio.h>
2#include <stdlib.h>
3#include <string.h>
4
5#include "hbtrie.h"
6#include "test.h"
7#include "btreeblock.h"
8#include "docio.h"

--- 80 unchanged lines hidden (view full) ---

89 char *key_ori[] = {"aaaa", "aaab", "aaac", "aba", "aaba", "bbbb", "aaac"};
90
91 rr = system("rm -rf ./dummy");
92
93 doc.key = keybuf;
94 doc.meta = metabuf;
95 doc.body = bodybuf;
96
1#include <stdio.h>
2#include <stdlib.h>
3#include <string.h>
4
5#include "hbtrie.h"
6#include "test.h"
7#include "btreeblock.h"
8#include "docio.h"

--- 80 unchanged lines hidden (view full) ---

89 char *key_ori[] = {"aaaa", "aaab", "aaac", "aba", "aaba", "bbbb", "aaac"};
90
91 rr = system("rm -rf ./dummy");
92
93 doc.key = keybuf;
94 doc.meta = metabuf;
95 doc.body = bodybuf;
96
97 memset(&config, 0, sizeof(config));
97 config.blocksize = blocksize;
98 config.ncacheblock = 1024;
99 config.flag = 0x0;
100
101 file = filemgr_open("./dummy", get_linux_filemgr_ops(), config);
102 docio_init(&dhandle, file);
103 btreeblk_init(&bhandle, file, blocksize);
104

--- 87 unchanged lines hidden (view full) ---

192
193 key = (char **)malloc(sizeof(char*) * n);
194 offset = (uint64_t *)malloc(sizeof(uint64_t) * n);
195
196 doc.key = keybuf;
197 doc.meta = metabuf;
198 doc.body = bodybuf;
199
98 config.blocksize = blocksize;
99 config.ncacheblock = 1024;
100 config.flag = 0x0;
101
102 file = filemgr_open("./dummy", get_linux_filemgr_ops(), config);
103 docio_init(&dhandle, file);
104 btreeblk_init(&bhandle, file, blocksize);
105

--- 87 unchanged lines hidden (view full) ---

193
194 key = (char **)malloc(sizeof(char*) * n);
195 offset = (uint64_t *)malloc(sizeof(uint64_t) * n);
196
197 doc.key = keybuf;
198 doc.meta = metabuf;
199 doc.body = bodybuf;
200
201 memset(&config, 0, sizeof(config));
200 config.blocksize = blocksize;
201 config.ncacheblock = 0 * 1024 * 128;
202 config.flag = 0;
203
204 DBG("filemgr, bcache init .. \n");
205 rr = system("rm -rf ./dummy");
206 file = filemgr_open("./dummy", get_linux_filemgr_ops(), config);
207 docio_init(&dhandle, file);

--- 112 unchanged lines hidden ---
202 config.blocksize = blocksize;
203 config.ncacheblock = 0 * 1024 * 128;
204 config.flag = 0;
205
206 DBG("filemgr, bcache init .. \n");
207 rr = system("rm -rf ./dummy");
208 file = filemgr_open("./dummy", get_linux_filemgr_ops(), config);
209 docio_init(&dhandle, file);

--- 112 unchanged lines hidden ---