C API: add rocksdb_env_set_high_priority_background_threads
This commit is contained in:
parent
2a2506b629
commit
4b1d049236
4
db/c.cc
4
db/c.cc
@ -788,6 +788,10 @@ void rocksdb_env_set_background_threads(rocksdb_env_t* env, int n) {
|
|||||||
env->rep->SetBackgroundThreads(n);
|
env->rep->SetBackgroundThreads(n);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void rocksdb_env_set_high_priority_background_threads(rocksdb_env_t* env, int n) {
|
||||||
|
env->rep->SetBackgroundThreads(n, Env::HIGH);
|
||||||
|
}
|
||||||
|
|
||||||
void rocksdb_env_destroy(rocksdb_env_t* env) {
|
void rocksdb_env_destroy(rocksdb_env_t* env) {
|
||||||
if (!env->is_default) delete env->rep;
|
if (!env->is_default) delete env->rep;
|
||||||
delete env;
|
delete env;
|
||||||
|
@ -311,6 +311,7 @@ extern void rocksdb_cache_destroy(rocksdb_cache_t* cache);
|
|||||||
|
|
||||||
extern rocksdb_env_t* rocksdb_create_default_env();
|
extern rocksdb_env_t* rocksdb_create_default_env();
|
||||||
extern void rocksdb_env_set_background_threads(rocksdb_env_t* env, int n);
|
extern void rocksdb_env_set_background_threads(rocksdb_env_t* env, int n);
|
||||||
|
extern void rocksdb_env_set_high_priority_background_threads(rocksdb_env_t* env, int n);
|
||||||
extern void rocksdb_env_destroy(rocksdb_env_t*);
|
extern void rocksdb_env_destroy(rocksdb_env_t*);
|
||||||
|
|
||||||
/* Universal Compaction options */
|
/* Universal Compaction options */
|
||||||
|
Loading…
Reference in New Issue
Block a user