summaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@wiredtiger.com>2014-07-09 11:38:23 +1000
committerMichael Cahill <michael.cahill@wiredtiger.com>2014-07-09 11:38:23 +1000
commit4be7e2a867f4512a61a8692921d89bc55edb77e7 (patch)
treed765374e44581a557bed0f511fb6879b23281fdb /api
parent2d9d9dd8750888d09dde897e8207ca690c8e7819 (diff)
downloadmongo-4be7e2a867f4512a61a8692921d89bc55edb77e7.tar.gz
Make sure the NewLRUCache function is in the leveldb namespace.
Diffstat (limited to 'api')
-rw-r--r--api/leveldb/leveldb_wt.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/api/leveldb/leveldb_wt.cc b/api/leveldb/leveldb_wt.cc
index 1609b43f3d1..bb42ca90254 100644
--- a/api/leveldb/leveldb_wt.cc
+++ b/api/leveldb/leveldb_wt.cc
@@ -51,10 +51,6 @@ class StringValue : public Value {
}
#endif
-Cache *NewLRUCache(size_t capacity) {
- return new CacheImpl(capacity);
-}
-
Status leveldb::DestroyDB(const std::string& name, const Options& options) {
WT_CONNECTION *conn;
int ret, t_ret;
@@ -195,6 +191,9 @@ const FilterPolicy *NewBloomFilterPolicy2(int bits_per_key) {
#endif
Cache::~Cache() {}
+Cache *NewLRUCache(size_t capacity) {
+ return new CacheImpl(capacity);
+}
}
int