mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 17:15:21 +02:00
Revert "Verify database connection on interval (#9665)"
Fixes #10113
This reverts commit 5c588f89e7
.
This commit is contained in:
@@ -32,14 +32,13 @@ public:
|
||||
Database_PostgreSQL(const std::string &connect_string);
|
||||
~Database_PostgreSQL();
|
||||
|
||||
virtual void pingDatabase();
|
||||
|
||||
void beginSave();
|
||||
void endSave();
|
||||
void rollback();
|
||||
|
||||
bool initialized() const;
|
||||
|
||||
|
||||
protected:
|
||||
// Conversion helpers
|
||||
inline int pg_to_int(PGresult *res, int row, int col)
|
||||
@@ -84,6 +83,7 @@ protected:
|
||||
}
|
||||
|
||||
void createTableIfNotExists(const std::string &table_name, const std::string &definition);
|
||||
void verifyDatabase();
|
||||
|
||||
// Database initialization
|
||||
void connectToDatabase();
|
||||
@@ -114,8 +114,6 @@ public:
|
||||
MapDatabasePostgreSQL(const std::string &connect_string);
|
||||
virtual ~MapDatabasePostgreSQL() = default;
|
||||
|
||||
virtual void pingDatabase() { Database_PostgreSQL::pingDatabase(); }
|
||||
|
||||
bool saveBlock(const v3s16 &pos, const std::string &data);
|
||||
void loadBlock(const v3s16 &pos, std::string *block);
|
||||
bool deleteBlock(const v3s16 &pos);
|
||||
@@ -135,8 +133,6 @@ public:
|
||||
PlayerDatabasePostgreSQL(const std::string &connect_string);
|
||||
virtual ~PlayerDatabasePostgreSQL() = default;
|
||||
|
||||
virtual void pingDatabase() { Database_PostgreSQL::pingDatabase(); }
|
||||
|
||||
void savePlayer(RemotePlayer *player);
|
||||
bool loadPlayer(RemotePlayer *player, PlayerSAO *sao);
|
||||
bool removePlayer(const std::string &name);
|
||||
|
Reference in New Issue
Block a user