|
---|
|
CMaNGOS Commits Изменения, принятые в официальный репозиторий ядра CMaNGOS. git://github.com/cmangos/mangos-wotlk.git |
|
Опции темы | Поиск в этой теме | Опции просмотра |
06.01.2011, 06:09 | #1 |
News Bot
Регистрация: 20.11.2009
Сообщений: 1,290
Сказал(а) спасибо: 0
Поблагодарили 5 раз(а) в 5 сообщениях
|
[10970] Implement mass mail send infrastructure.
автор: VladimirMangos
<pre>m src/game/Mail.cpp m src/game/Mail.h m src/game/Makefile.am + src/game/MassMailMgr.cpp + src/game/MassMailMgr.h m src/game/World.cpp m src/game/World.h m src/mangosd/mangosd.conf.dist.in m src/shared/revision_nr.h m win/VC100/game.vcxproj m win/VC100/game.vcxproj.filters m win/VC80/game.vcproj m win/VC90/game.vcproj </pre> <pre style='white-space:pre-wrap;width:81ex'>[10970] Implement mass mail send infrastructure. It expected to be used in 2 case: some gameevent must send mails at start/end, and this can be useful in game commands. Both case wil implemented in later commits. * New MassMailMgr can accept tasks for send mass mails in safe way for map update threads context/etc. * It work in way: - By provided race mask or more generic SQL query string in async query selected affected characters - At query result ready at next world tick update in safe common part of tick code some from mails from queued mas mail tasks send. - Amount mails limited MassMailer.SendPerTick confir option (10 by default). This done for prevent high server load/lags at send too many mails in one tick (mail send all existed characters in DB who match to seelction criteria) - Manager not persistant for server shutdowns so any not send mails in queue lost at shutdown. But with default setting 10K mail send in 20 secs (10000/50/10). Adding more safe execution for this case will make related code lot more slow and req. many DB tables and code support.</pre> Дальше... |
|
|
Похожие темы | ||||
Тема | Автор | Раздел | Ответов | Последнее сообщение |
[10831] Fixed crash at send mail from console | newsbot | CMaNGOS Commits | 0 | 07.12.2010 04:40 |
[10802] Use ObjectGuid in Mail code. | newsbot | CMaNGOS Commits | 0 | 01.12.2010 15:20 |
[9730] Mail send related fixes in recent code. | newsbot | CMaNGOS Commits | 0 | 12.04.2010 05:10 |
[9406] Documentation mail system. | newsbot | CMaNGOS Commits | 0 | 18.02.2010 06:51 |
[9357] Propertly show mail data in new mail tooltip for action mails. | newsbot | CMaNGOS Commits | 0 | 11.02.2010 15:35 |