2013-04-16 23:59:10 -04:00
|
|
|
#ifndef TOKU_LOADER_H
|
|
|
|
#define TOKU_LOADER_H
|
2013-04-16 23:58:59 -04:00
|
|
|
|
2013-04-16 23:59:10 -04:00
|
|
|
#if defined(__cplusplus)
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Copyright (c) 2007-2010 Tokutek Inc. All rights reserved.
|
2013-04-16 23:58:59 -04:00
|
|
|
*
|
|
|
|
* The technology is licensed by the Massachusetts Institute of Technology,
|
|
|
|
* Rutgers State University of New Jersey, and the Research Foundation of
|
|
|
|
* State University of New York at Stony Brook under United States of America
|
|
|
|
* Serial No. 11/760379 and to the patents and/or patent applications resulting from it.
|
|
|
|
*/
|
|
|
|
|
2013-04-16 23:59:03 -04:00
|
|
|
int toku_loader_create_loader(DB_ENV *env, DB_TXN *txn, DB_LOADER **blp, DB *src_db, int N, DB *dbs[N], uint32_t db_flags[N], uint32_t dbt_flags[N], uint32_t loader_flags);
|
2013-04-16 23:59:10 -04:00
|
|
|
|
2013-04-16 23:59:03 -04:00
|
|
|
int toku_loader_set_error_callback(DB_LOADER *loader, void (*error_cb)(DB *db, int i, int err, DBT *key, DBT *val, void *error_extra), void *error_extra);
|
2013-04-16 23:59:10 -04:00
|
|
|
|
2013-04-16 23:59:03 -04:00
|
|
|
int toku_loader_set_poll_function(DB_LOADER *loader, int (*poll_func)(void *poll_extra, float progress), void *poll_extra);
|
2013-04-16 23:59:10 -04:00
|
|
|
|
2013-04-16 23:58:59 -04:00
|
|
|
int toku_loader_put(DB_LOADER *loader, DBT *key, DBT *val);
|
2013-04-16 23:59:10 -04:00
|
|
|
|
2013-04-16 23:58:59 -04:00
|
|
|
int toku_loader_close(DB_LOADER *loader);
|
2013-04-16 23:59:10 -04:00
|
|
|
|
2013-04-16 23:58:59 -04:00
|
|
|
int toku_loader_abort(DB_LOADER *loader);
|
|
|
|
|
2013-04-16 23:59:10 -04:00
|
|
|
// Remove any loader temp files that may have been left from a crashed system
|
|
|
|
int toku_loader_cleanup_temp_files(DB_ENV *env);
|
|
|
|
|
|
|
|
#if defined(__cplusplus)
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2013-04-16 23:58:59 -04:00
|
|
|
#endif
|