29 #line 30 "DeadlockMgr.cc"
32 myIdentity(*myIdentityArg)
73 boost::unordered_set<string>::iterator it;
75 for (it = listsRef.
locked.begin();
76 it != listsRef.
locked.end(); ++it)
81 for (it = listsRef.
waiting.begin();
82 it != listsRef.
waiting.end(); ++it)
123 erase(changedeadlockRef);
142 fprintf(
logfile,
"anomaly: %li %s %i\n",
158 fprintf(
logfile,
"anomaly: %i %s %i\n",
190 int64_t engineid, int64_t domainid,
191 int64_t fieldid,
long double floatentry,
192 std::string *stringentry,
193 std::string *returnstring)
195 string &returnstringRef = *returnstring;
196 size_t strlength = stringentry->length();
197 returnstringRef.reserve(
sizeof(isrow) + (5 *
sizeof(int64_t)) +
198 sizeof(floatentry) +
sizeof(strlength) + strlength);
206 stringentry->clear();
215 memcpy(&returnstringRef[pos], &isrow,
sizeof(isrow));
216 pos +=
sizeof(isrow);
217 memcpy(&returnstringRef[pos], &rowid,
sizeof(rowid));
218 pos +=
sizeof(rowid);
219 memcpy(&returnstringRef[pos], &tableid,
sizeof(tableid));
220 pos +=
sizeof(tableid);
221 memcpy(&returnstringRef[pos], &engineid,
sizeof(engineid));
222 pos +=
sizeof(engineid);
223 memcpy(&returnstringRef[pos], &domainid,
sizeof(domainid));
224 pos +=
sizeof(domainid);
225 memcpy(&returnstringRef[pos], &fieldid,
sizeof(fieldid));
226 pos +=
sizeof(fieldid);
227 memcpy(&returnstringRef[pos], &floatentry,
sizeof(floatentry));
228 pos +=
sizeof(floatentry);
229 memcpy(&returnstringRef[pos], &strlength,
sizeof(strlength));
230 pos +=
sizeof(strlength);
231 memcpy(&returnstringRef[pos], stringentry->c_str(), strlength);
236 bool deadlockflag =
true;
239 while (deadlockflag==
true)
241 deadlockflag =
false;
243 boost::unordered_map< int64_t,
244 boost::unordered_set<string> >::iterator it;
250 if (
walk(it->first)==
true)
306 boost::unordered_set<string>::iterator it;
323 const string &itemRef = (string)(*itemIt);
338 boost::unordered_set<int64_t>::iterator it;
357 boost::unordered_set<string>::iterator it;