mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 11:01:52 +01:00
Merge bk-internal:/home/bk/mysql-5.1-new-ndb
into pilot.mysql.com:/data/msvensson/mysql/mysql-5.1-ndb
This commit is contained in:
commit
30924a0afc
1 changed files with 18 additions and 1 deletions
|
@ -43,6 +43,7 @@
|
|||
#include <NdbEnv.h>
|
||||
#include <NdbMem.h>
|
||||
#include <util/version.h>
|
||||
#include <NdbSleep.h>
|
||||
|
||||
#define DEBUG_PRINT 0
|
||||
#define INCOMPATIBLE_VERSION -2
|
||||
|
@ -1777,7 +1778,23 @@ NdbDictInterface::dictSignal(NdbApiSignal* sig,
|
|||
{
|
||||
DBUG_ENTER("NdbDictInterface::dictSignal");
|
||||
DBUG_PRINT("enter", ("useMasterNodeId: %d", node_specification));
|
||||
for(Uint32 i = 0; i<RETRIES; i++){
|
||||
|
||||
int sleep = 50;
|
||||
int mod = 5;
|
||||
|
||||
for(Uint32 i = 0; i<RETRIES; i++)
|
||||
{
|
||||
if (i > 0)
|
||||
NdbSleep_MilliSleep(sleep + 10 * (rand() % mod));
|
||||
if (i == RETRIES / 2)
|
||||
{
|
||||
mod = 10;
|
||||
}
|
||||
if (i == 3*RETRIES/4)
|
||||
{
|
||||
sleep = 100;
|
||||
}
|
||||
|
||||
m_buffer.clear();
|
||||
|
||||
// Protected area
|
||||
|
|
Loading…
Add table
Reference in a new issue