summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorehds <ehds@qq.com>2021-05-08 13:48:39 +0800
committerehds <ehds@qq.com>2021-05-08 13:48:39 +0800
commitdbf24d9a0c3e91345281d1c8c9263e31fefadc36 (patch)
tree7d37717f21d35a18da65cbaaa6ca8d1158aff2e3
parentf57513a1d6c99636fc5b710150d0b93713af4e43 (diff)
downloadleveldb-dbf24d9a0c3e91345281d1c8c9263e31fefadc36.tar.gz
Make table cache non-copyable
-rw-r--r--db/table_cache.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/db/table_cache.h b/db/table_cache.h
index aac9bfc..db8a123 100644
--- a/db/table_cache.h
+++ b/db/table_cache.h
@@ -22,6 +22,10 @@ class Env;
class TableCache {
public:
TableCache(const std::string& dbname, const Options& options, int entries);
+
+ TableCache(const TableCache&) = delete;
+ TableCache& operator=(const TableCache&) = delete;
+
~TableCache();
// Return an iterator for the specified file number (the corresponding