From 7c7a012c2879d3d5821aa2077b276c770e50d87b Mon Sep 17 00:00:00 2001 From: icattlecoder Date: Fri, 30 May 2014 13:50:56 +0800 Subject: [PATCH] fix env --- env.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/env.go b/env.go index acb2912..8c7f65b 100644 --- a/env.go +++ b/env.go @@ -23,6 +23,10 @@ func NewDefaultEnv() *Env { return &Env{C.rocksdb_create_default_env()} } +func (env *Env) SetBackgroundThreads(int n) { + C.rocksdb_env_set_high_priority_background_threads(env.Env, n) +} + // Close deallocates the Env, freeing the underlying struct. func (env *Env) Close() { C.rocksdb_env_destroy(env.Env)