13 |
#include <estnode.h> |
#include <estnode.h> |
14 |
|
|
15 |
/* backward compatibility for 0.5.4 */ |
/* backward compatibility for 0.5.4 */ |
16 |
|
/* |
17 |
#ifndef ESTCONDAGITO |
#ifndef ESTCONDAGITO |
18 |
#define ESTCONDAGITO ESTCONDAGIT |
#define ESTCONDAGITO ESTCONDAGIT |
19 |
#endif |
#endif |
20 |
|
*/ |
21 |
|
|
22 |
namespace estraier { |
namespace estraier { |
23 |
|
|
417 |
if (!db) throw IOError("closed database"); |
if (!db) throw IOError("closed database"); |
418 |
return est_mtdb_size(db); |
return est_mtdb_size(db); |
419 |
} |
} |
420 |
void set_cache_size(size_t size, int anum, int tnum) { |
void set_cache_size(size_t size, int anum, int tnum, int rnum) { |
421 |
/** |
/** |
422 |
* set the maximum size of the cache memory of a database |
* set the maximum size of the cache memory of a database |
423 |
*/ |
*/ |
424 |
if (!db) throw IOError("closed database"); |
if (!db) throw IOError("closed database"); |
425 |
est_mtdb_set_cache_size(db, size, anum, tnum); |
est_mtdb_set_cache_size(db, size, anum, tnum, rnum); |
426 |
} |
} |
427 |
void set_special_cache(const char *name, int num) { |
void set_special_cache(const char *name, int num) { |
428 |
/** |
/** |