diff options
author | unknown <mskold/marty@quadfish.(none)> | 2008-02-06 15:10:18 +0100 |
---|---|---|
committer | unknown <mskold/marty@quadfish.(none)> | 2008-02-06 15:10:18 +0100 |
commit | 20fb40b0d6cf6863b8bb9d6f86fb38f82fc9f4ab (patch) | |
tree | ebe2100ddf03ae0461fedef2589376e852899613 /storage/ndb | |
parent | e156d6af4dcb2b8ab45df4bc2045d290ec4a7d87 (diff) | |
parent | cfca20b052db619a6758532a47c2eaf33a6aea46 (diff) | |
download | mariadb-git-20fb40b0d6cf6863b8bb9d6f86fb38f82fc9f4ab.tar.gz |
Merge mysql.com:/home/marty/MySQL/mysql-5.0-ndb
into mysql.com:/home/marty/MySQL/mysql-5.1-new-ndb
storage/ndb/src/ndbapi/NdbDictionaryImpl.cpp:
Merge
Diffstat (limited to 'storage/ndb')
-rw-r--r-- | storage/ndb/src/ndbapi/NdbDictionaryImpl.cpp | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/storage/ndb/src/ndbapi/NdbDictionaryImpl.cpp b/storage/ndb/src/ndbapi/NdbDictionaryImpl.cpp index 953cfffd73b..0d226a97621 100644 --- a/storage/ndb/src/ndbapi/NdbDictionaryImpl.cpp +++ b/storage/ndb/src/ndbapi/NdbDictionaryImpl.cpp @@ -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 |