Optimize updateFastFaceRow processing by removing some TileSpec copy (#5678)
[oweals/minetest.git] / src / database-leveldb.h
index 3993db0c3ae7559b02b86ba6d7c7fd62bcb105bd..52ccebe70a4c7ea99a35e366bc3ad13082eb0cfd 100644 (file)
@@ -24,11 +24,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 
 #if USE_LEVELDB
 
+#include <string>
 #include "database.h"
 #include "leveldb/db.h"
-#include <string>
 
-class Database_LevelDB : public Database
+class Database_LevelDB : public MapDatabase
 {
 public:
        Database_LevelDB(const std::string &savedir);
@@ -39,6 +39,8 @@ public:
        bool deleteBlock(const v3s16 &pos);
        void listAllLoadableBlocks(std::vector<v3s16> &dst);
 
+       void beginSave() {}
+       void endSave() {}
 private:
        leveldb::DB *m_database;
 };
@@ -46,4 +48,3 @@ private:
 #endif // USE_LEVELDB
 
 #endif
-