Merge pull request #16978 from AffectedArc07/multi-instance-cleanup

Multi instance cleanup
This commit is contained in:
Fox McCloud
2021-10-21 09:45:25 -04:00
committed by GitHub
5 changed files with 2 additions and 36 deletions
+1 -1
View File
@@ -625,7 +625,7 @@ CREATE TABLE `pai_saves` (
CREATE TABLE `instance_data_cache` (
`server_id` VARCHAR(50) NOT NULL COLLATE 'utf8mb4_general_ci',
`key_name` VARCHAR(50) NOT NULL COLLATE 'utf8mb4_general_ci',
`key_value` VARCHAR(50) NOT NULL COLLATE 'utf8mb4_general_ci',
`key_value` VARCHAR(12345) NOT NULL COLLATE 'utf8mb4_general_ci',
`last_updated` TIMESTAMP NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
PRIMARY KEY (`server_id`, `key_name`) USING HASH
) COLLATE='utf8mb4_general_ci' ENGINE=MEMORY;
+1 -1
View File
@@ -4,7 +4,7 @@
CREATE TABLE `instance_data_cache` (
`server_id` VARCHAR(50) NOT NULL COLLATE 'utf8mb4_general_ci',
`key_name` VARCHAR(50) NOT NULL COLLATE 'utf8mb4_general_ci',
`key_value` VARCHAR(50) NOT NULL COLLATE 'utf8mb4_general_ci',
`key_value` VARCHAR(12345) NOT NULL COLLATE 'utf8mb4_general_ci',
`last_updated` TIMESTAMP NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
PRIMARY KEY (`server_id`, `key_name`) USING HASH
) COLLATE='utf8mb4_general_ci' ENGINE=MEMORY;
-32
View File
@@ -1,32 +0,0 @@
/**
* # Peer server
*
* This datum is essentially a model class to represent another instance of Paracode running
*
* It contains communications passes, an internal IP to communicate to, an external IP for players to connect to
*
*/
/datum/peer_server
// The following options will be loaded from configuration
/// Peer server internal IP, used for communications
var/internal_ip
/// Port of the server
var/server_port = 0
/// Comms key for this server
var/commskey
// The following options will be pulled from the peer at runtime
/// Peer server external IP, used for routing players around
var/external_ip
/// Peer server ID, used internally. Pulled from the peer on startup.
var/server_id
/// Peer server name, presented to players. Pulled from the peer on startup.
var/server_name
/// Have we done initial data discovery yet?
var/discovered = FALSE
/// Is the peer server online?
var/online = FALSE
/// Playercount of the peer server on last ping
var/playercount
/// Last world.time that an operation was attempted
var/last_operation_time = 0
-1
View File
@@ -21,7 +21,6 @@
# - gamemode_configuration
# - gateway_configuration
# - general_configuration
# - instancing_configuration
# - ipintel_configuration
# - job_configuration
# - logging_configuration
-1
View File
@@ -294,7 +294,6 @@
#include "code\datums\mind.dm"
#include "code\datums\mixed.dm"
#include "code\datums\mutable_appearance.dm"
#include "code\datums\peer_server.dm"
#include "code\datums\periodic_news.dm"
#include "code\datums\pipe_datums.dm"
#include "code\datums\progressbar.dm"