summaryrefslogtreecommitdiff
path: root/db/table_cache.h
diff options
context:
space:
mode:
Diffstat (limited to 'db/table_cache.h')
-rw-r--r--db/table_cache.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/db/table_cache.h b/db/table_cache.h
index 93069c8..db8a123 100644
--- a/db/table_cache.h
+++ b/db/table_cache.h
@@ -7,8 +7,7 @@
#ifndef STORAGE_LEVELDB_DB_TABLE_CACHE_H_
#define STORAGE_LEVELDB_DB_TABLE_CACHE_H_
-#include <stdint.h>
-
+#include <cstdint>
#include <string>
#include "db/dbformat.h"
@@ -23,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