Browse Source

Make table cache non-copyable

master
ehds 3 years ago
parent
commit
dbf24d9a0c
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      db/table_cache.h

+ 4
- 0
db/table_cache.h View File

@ -22,6 +22,10 @@ class Env;
class TableCache { class TableCache {
public: public:
TableCache(const std::string& dbname, const Options& options, int entries); TableCache(const std::string& dbname, const Options& options, int entries);
TableCache(const TableCache&) = delete;
TableCache& operator=(const TableCache&) = delete;
~TableCache(); ~TableCache();
// Return an iterator for the specified file number (the corresponding // Return an iterator for the specified file number (the corresponding

Loading…
Cancel
Save