mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-10 03:53:26 -08:00
[Server] Create the worker database interfaces through the factory (#7860)
This commit is contained in:
parent
0caacb27c1
commit
c4ac80e282
5 changed files with 62 additions and 29 deletions
|
|
@ -833,6 +833,15 @@ public:
|
|||
virtual void purgeExpiredLegacyBackups()
|
||||
{
|
||||
}
|
||||
/** @brief Creates the database interface a worker connection pool runs on; nullptr when unsupported. */
|
||||
virtual Server_DatabaseInterface *createWorkerInterface(int /* instanceId */)
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
/** @brief Opens a worker interface's connection on its own thread; a no-op when unsupported. */
|
||||
virtual void initialiseWorkerDatabase()
|
||||
{
|
||||
}
|
||||
|
||||
virtual void clearSessionTables()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue