summaryrefslogtreecommitdiff
path: root/src/database-leveldb.cpp
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2015-02-17 14:30:32 +0100
committerLoic Blot <loic.blot@unix-experience.fr>2015-02-17 14:35:44 +0100
commit718bcafd5174690a7731f9b04873e9a09f7a47b7 (patch)
treea2414ca7dde34e097bfe6fe2b4d8a1e0701d10fb /src/database-leveldb.cpp
parentc58d49977da5aab88f5a9d5b540c6237ca5cdcb5 (diff)
downloadminetest-718bcafd5174690a7731f9b04873e9a09f7a47b7.tar.gz
minetest-718bcafd5174690a7731f9b04873e9a09f7a47b7.tar.bz2
minetest-718bcafd5174690a7731f9b04873e9a09f7a47b7.zip
Replace std::list by std::vector into ServerMap::listAllLoadableBlocks ServerMap::listAllLoadedBlocks and their database backends.
This adds a speedup on database migration and /clearobjects command
Diffstat (limited to 'src/database-leveldb.cpp')
-rw-r--r--src/database-leveldb.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/database-leveldb.cpp b/src/database-leveldb.cpp
index de510e533..b35e612b6 100644
--- a/src/database-leveldb.cpp
+++ b/src/database-leveldb.cpp
@@ -93,7 +93,7 @@ bool Database_LevelDB::deleteBlock(v3s16 blockpos)
return true;
}
-void Database_LevelDB::listAllLoadableBlocks(std::list<v3s16> &dst)
+void Database_LevelDB::listAllLoadableBlocks(std::vector<v3s16> &dst)
{
leveldb::Iterator* it = m_database->NewIterator(leveldb::ReadOptions());
for (it->SeekToFirst(); it->Valid(); it->Next()) {