#At file:///home/msvensson/mysql/6.3-bug31542/ based on revid:magnus.blaudd@stripped52-eubgiznjv2kdacc5
3096 Magnus Blåudd 2010-03-02
Bug#37632 ALL REPORT MEM spams to stdout
- Only print MemoryUsage events in ndb_mgm if memory
has increased or decreased
modified:
storage/ndb/src/mgmclient/CommandInterpreter.cpp
=== modified file 'storage/ndb/src/mgmclient/CommandInterpreter.cpp'
--- a/storage/ndb/src/mgmclient/CommandInterpreter.cpp 2010-03-02 09:28:52 +0000
+++ b/storage/ndb/src/mgmclient/CommandInterpreter.cpp 2010-03-02 09:31:22 +0000
@@ -838,10 +838,17 @@ printLogEvent(struct ndb_logevent* event
#define EVENT MemoryUsage
case NDB_LE_MemoryUsage:
{
+
+ if (Q(gth) == 0)
+ {
+ // Only print MemoryUsage report for increased/decreased
+ break;
+ }
+
const int percent = Q(pages_total) ? (Q(pages_used)*100)/Q(pages_total) : 0;
ndbout_c("Node %u: %s usage %s %d%s(%d %dK pages of total %d)", R,
(Q(block) == DBACC ? "Index" : (Q(block) == DBTUP ?"Data":"<unknown>")),
- (Q(gth) == 0 ? "is" : (Q(gth) > 0 ? "increased to" : "decreased to")),
+ (Q(gth) > 0 ? "increased to" : "decreased to"),
percent, "%",
Q(pages_used), Q(page_size_kb)/1024, Q(pages_total));
break;
Attachment: [text/bzr-bundle] bzr/magnus.blaudd@sun.com-20100302093122-983jg6k5d4j5qsuw.bundle
Thread |
---|
• bzr commit into mysql-5.1-telco-6.3 branch (magnus.blaudd:3096)Bug#37632 | Magnus Blåudd | 2 Mar |