#At file:///home/msvensson/mysql/7.0/ based on revid:magnus.blaudd@stripped
3857 Magnus Blåudd 2010-10-13
ndb
- properly break for loop when the right even type is found
modified:
storage/ndb/src/mgmapi/ndb_logevent.cpp
storage/ndb/src/mgmsrv/Services.cpp
=== modified file 'storage/ndb/src/mgmapi/ndb_logevent.cpp'
--- a/storage/ndb/src/mgmapi/ndb_logevent.cpp 2010-10-13 12:22:51 +0000
+++ b/storage/ndb/src/mgmapi/ndb_logevent.cpp 2010-10-13 15:04:06 +0000
@@ -586,8 +586,8 @@ int ndb_logevent_get_next(const NdbLogEv
/* fill in header info from p */
for (i= 0; ndb_logevent_body[i].token; i++)
{
- if ( ndb_logevent_body[i].type != dst->type )
- continue;
+ if ( ndb_logevent_body[i].type == dst->type )
+ break;
}
if (ndb_logevent_body[i].token)
=== modified file 'storage/ndb/src/mgmsrv/Services.cpp'
--- a/storage/ndb/src/mgmsrv/Services.cpp 2010-10-13 12:22:51 +0000
+++ b/storage/ndb/src/mgmsrv/Services.cpp 2010-10-13 15:04:06 +0000
@@ -1390,8 +1390,8 @@ logevent2str(BaseString& str, int eventT
unsigned i;
for (i = 0; ndb_logevent_body[i].token; i++)
{
- if ( ndb_logevent_body[i].type != eventType)
- continue;
+ if ( ndb_logevent_body[i].type == eventType)
+ break;
}
if (ndb_logevent_body[i].token)
Attachment: [text/bzr-bundle] bzr/magnus.blaudd@sun.com-20101013150406-7rfawf0903n7qvcw.bundle
| Thread |
|---|
| • bzr commit into mysql-5.1-telco-7.0 branch (magnus.blaudd:3857) | Magnus Blåudd | 13 Oct |