summaryrefslogtreecommitdiff
path: root/src/map.cpp
diff options
context:
space:
mode:
authorLoïc Blot <nerzhul@users.noreply.github.com>2020-04-15 08:01:11 +0200
committerGitHub <noreply@github.com>2020-04-15 08:01:11 +0200
commit5c588f89e79e02cba392abe3d00688772321f88b (patch)
treef88ba42459e55fa577668054fb06803af928f7d1 /src/map.cpp
parent62c62f382984bd1a6f5cd7c6edb00453ff758f9b (diff)
downloadminetest-5c588f89e79e02cba392abe3d00688772321f88b.tar.gz
minetest-5c588f89e79e02cba392abe3d00688772321f88b.tar.bz2
minetest-5c588f89e79e02cba392abe3d00688772321f88b.zip
Verify database connection on interval (#9665)
Diffstat (limited to 'src/map.cpp')
-rw-r--r--src/map.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map.cpp b/src/map.cpp
index eb69955ee..12e122124 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -1887,6 +1887,11 @@ MapDatabase *ServerMap::createDatabase(
throw BaseException(std::string("Database backend ") + name + " not supported.");
}
+void ServerMap::pingDatabase()
+{
+ dbase->pingDatabase();
+}
+
void ServerMap::beginSave()
{
dbase->beginSave();