Account data: store up to 1 MiB per type, warn when data is dropped

The handler dropped any upload that decompressed to more than 64 KiB
without a reply or a warning, and both account data tables used a
64 KiB blob. Raise the limit to 1 MiB, widen the columns to mediumblob,
log a warning with account, player, type and size whenever data is
dropped, and store only the bytes zlib actually produced.
This commit is contained in:
Karrz1
2026-10-27 15:04:16 +00:00
parent 91d49b230f
commit 4e7a436213
3 changed files with 14 additions and 5 deletions
+2 -2
View File
@@ -26,7 +26,7 @@ CREATE TABLE `account_data` (
`accountId` int unsigned NOT NULL DEFAULT '0' COMMENT 'Account Identifier',
`type` tinyint unsigned NOT NULL DEFAULT '0',
`time` bigint NOT NULL DEFAULT '0',
`data` blob NOT NULL,
`data` mediumblob NOT NULL,
PRIMARY KEY (`accountId`,`type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -385,7 +385,7 @@ CREATE TABLE `character_account_data` (
`guid` bigint unsigned NOT NULL DEFAULT '0',
`type` tinyint unsigned NOT NULL DEFAULT '0',
`time` bigint NOT NULL DEFAULT '0',
`data` blob NOT NULL,
`data` mediumblob NOT NULL,
PRIMARY KEY (`guid`,`type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;