mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-23 23:56:15 +00:00
Fixed: #868 0:Invalid account (2101) error caused by Shard Unifier Service and MySQL (patch provided by kerozcak)
This commit is contained in:
parent
b26e6ced32
commit
3a51ef7f07
1 changed files with 6 additions and 0 deletions
|
@ -25,6 +25,7 @@ using namespace NLNET;
|
||||||
|
|
||||||
CVariable<bool> MSWStrictMode("msw", "MSWStrictMode", "Set the strict mode on SQL request", true, 0, true);
|
CVariable<bool> MSWStrictMode("msw", "MSWStrictMode", "Set the strict mode on SQL request", true, 0, true);
|
||||||
CVariable<uint32> MSWRequestDuration("msw", "MSWRequestDuration", "Measure the duration of SQL request", 0, 1000);
|
CVariable<uint32> MSWRequestDuration("msw", "MSWRequestDuration", "Measure the duration of SQL request", 0, 1000);
|
||||||
|
CVariable<bool> MSWAutoReconnect("msw", "MSWAutoReconnect", "MYSQL_OPT_RECONNECT", true, 0, true);
|
||||||
|
|
||||||
|
|
||||||
namespace MSW
|
namespace MSW
|
||||||
|
@ -112,6 +113,11 @@ namespace MSW
|
||||||
|
|
||||||
nlassert(!_Connected);
|
nlassert(!_Connected);
|
||||||
|
|
||||||
|
if (MSWAutoReconnect)
|
||||||
|
{
|
||||||
|
addOption(MYSQL_OPT_RECONNECT, "1");
|
||||||
|
}
|
||||||
|
|
||||||
return _connect();
|
return _connect();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue