diff options
author | ehds <ehds@qq.com> | 2021-05-08 13:48:39 +0800 |
---|---|---|
committer | ehds <ehds@qq.com> | 2021-05-08 13:48:39 +0800 |
commit | dbf24d9a0c3e91345281d1c8c9263e31fefadc36 (patch) | |
tree | 7d37717f21d35a18da65cbaaa6ca8d1158aff2e3 /db/table_cache.h | |
parent | f57513a1d6c99636fc5b710150d0b93713af4e43 (diff) | |
download | leveldb-dbf24d9a0c3e91345281d1c8c9263e31fefadc36.tar.gz |
Make table cache non-copyable
Diffstat (limited to 'db/table_cache.h')
-rw-r--r-- | db/table_cache.h | 4 |
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 |