diff --git a/helpers/memenv/memenv.cc b/helpers/memenv/memenv.cc index 34d97fa76..185e7d822 100644 --- a/helpers/memenv/memenv.cc +++ b/helpers/memenv/memenv.cc @@ -2,8 +2,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. -#include "helpers/memenv/memenv.h" - #include "rocksdb/env.h" #include "rocksdb/status.h" #include "port/port.h" diff --git a/helpers/memenv/memenv.h b/helpers/memenv/memenv.h deleted file mode 100644 index 21264411c..000000000 --- a/helpers/memenv/memenv.h +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) 2011 The LevelDB Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. See the AUTHORS file for names of contributors. - -#ifndef STORAGE_ROCKSDB_HELPERS_MEMENV_MEMENV_H_ -#define STORAGE_ROCKSDB_HELPERS_MEMENV_MEMENV_H_ -namespace rocksdb { - -class Env; - -// Returns a new environment that stores its data in memory and delegates -// all non-file-storage tasks to base_env. The caller must delete the result -// when it is no longer needed. -// *base_env must remain live while the result is in use. -Env* NewMemEnv(Env* base_env); - -} // namespace rocksdb - -#endif // STORAGE_ROCKSDB_HELPERS_MEMENV_MEMENV_H_ diff --git a/helpers/memenv/memenv_test.cc b/helpers/memenv/memenv_test.cc index 19fc8ff2a..ea3ed61a0 100644 --- a/helpers/memenv/memenv_test.cc +++ b/helpers/memenv/memenv_test.cc @@ -2,8 +2,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. -#include "helpers/memenv/memenv.h" - #include "db/db_impl.h" #include "rocksdb/db.h" #include "rocksdb/env.h" diff --git a/include/rocksdb/env.h b/include/rocksdb/env.h index ce8fe0292..6a963510f 100644 --- a/include/rocksdb/env.h +++ b/include/rocksdb/env.h @@ -761,6 +761,12 @@ class EnvWrapper : public Env { Env* target_; }; +// Returns a new environment that stores its data in memory and delegates +// all non-file-storage tasks to base_env. The caller must delete the result +// when it is no longer needed. +// *base_env must remain live while the result is in use. +Env* NewMemEnv(Env* base_env); + } // namespace rocksdb #endif // STORAGE_ROCKSDB_INCLUDE_ENV_H_