projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd72091
)
Remove block file from disk when saved to database
author
Perttu Ahola
<celeron55@gmail.com>
Tue, 6 Sep 2011 17:28:45 +0000
(20:28 +0300)
committer
Perttu Ahola
<celeron55@gmail.com>
Tue, 6 Sep 2011 17:28:45 +0000
(20:28 +0300)
src/map.cpp
patch
|
blob
|
history
diff --git
a/src/map.cpp
b/src/map.cpp
index 423a07dcdc61394b4600aa136af40bcfe2c6a757..7de79c75d8f4a963fad21443c6e19f15e5ef5b24 100644
(file)
--- a/
src/map.cpp
+++ b/
src/map.cpp
@@
-3397,6
+3397,9
@@
void ServerMap::loadBlock(std::string sectordir, std::string blockfile, MapSecto
if(version < SER_FMT_VER_HIGHEST || save_after_load)
{
saveBlock(block);
+
+ // Should be in database now, so delete the old file
+ fs::RecursiveDelete(fullpath);
}
// We just loaded it from the disk, so it's up-to-date.