|
|||||||||||
|
PHP mysqlnd svn commit: r949 - trunk/mysqlnd
From: <ahristov(at)mysql.com>
Date: Thu Aug 23 2007 - 11:54:47 EDT
Modified: trunk/mysqlnd/mysqlnd_debug.h trunk/mysqlnd/mysqlnd_palloc.c trunk/mysqlnd/mysqlnd_result.c trunk/mysqlnd/mysqlnd_result_meta.c trunk/mysqlnd/mysqlnd_statistics.c trunk/mysqlnd/mysqlnd_wireprotocol.c Log: Dump less output Modified: trunk/mysqlnd/mysqlnd_debug.h
#include "zend_stack.h"
-#define MYSQLND_DEBUG_MEMORY 1
struct st_mysqlnd_debug_methods
Modified: trunk/mysqlnd/mysqlnd_palloc.c
+#if MYSQLND_DEBUG_MEMORY
DBG_ENTER("mysqlnd_palloc_get_zval");
DBG_INF_FMT("cache=%p *last_added=%p free_items=%d",
thd_cache, thd_cache? thd_cache->parent->free_list.last_added:NULL,
thd_cache->parent->free_items);
+#endif
if (thd_cache) {
MYSQLND_ZVAL_PCACHE *cache = thd_cache->parent;
@@ -328,8 +330,12 @@
ZVAL_ADDREF(&(((mysqlnd_zval *)ret)->zv));
}
+#endif } /* }}} */ @@ -339,8 +345,9 @@ enum_mysqlnd_res_type type, zend_bool *copy_ctor_called TSRMLS_DC) {
MYSQLND_ZVAL_PCACHE *cache;
+ DBG_ENTER("mysqlnd_palloc_zval_ptr_dtor");
+ DBG_INF_FMT("cache=%p parent_block=%p last_in_block=%p *zv=%p type=%d refc=%d\n",
thd_cache,
thd_cache->parent? thd_cache->parent->block:NULL,
thd_cache->parent? thd_cache->parent->last_in_block:NULL,
@@ -382,6 +389,9 @@
}
}
zval_ptr_dtor(zv);
@@ -442,6 +452,9 @@ UNLOCK_PCACHE(cache); } +#endif } /* }}} */ Modified: trunk/mysqlnd/mysqlnd_result.c
Modified: trunk/mysqlnd/mysqlnd_result_meta.c
Modified: trunk/mysqlnd/mysqlnd_statistics.c
typedef struct st_mysqlnd_string
MYSQLND_STATS stats, *stats_ptr = mysqlnd_global_stats; -
+ DBG_ENTER("_mysqlnd_get_client_stats");
if (!stats_ptr) {
memset(&stats, 0, sizeof(stats));
stats_ptr = &stats;
}
mysqlnd_fill_stats_hash(stats_ptr, return_value TSRMLS_CC ZEND_FILE_LINE_CC);
+ DBG_VOID_RETURN;
} Modified: trunk/mysqlnd/mysqlnd_wireprotocol.c
#define USE_CORK 0 +#define MYSQLND_SILENT 1 @@ -423,8 +424,9 @@ char *p = buffer; int to_read = MYSQLND_HEADER_SIZE, ret; - +#endif
do {
if (!(ret= php_stream_read(net->stream, p, to_read))) {
DBG_ERR_FMT("Error while reading header from socket");
@@ -452,14 +454,22 @@
#ifdef MYSQLND_DUMP_HEADER_N_BODY
DBG_ERR_FMT("HEADER: packet_no=%d size=%3d", header->packet_no, header->size);
#endif
DBG_RETURN(PASS);
}
DBG_ERR_FMT("Packets out of order. Expected %d received %d. Packet size=%d",
net->packet_no, header->packet_no, header->size);
php_error(E_WARNING, "Packets out of order. Expected %d received %d. Packet size=%d. PID=%d",
net->packet_no, header->packet_no, header->size, getpid());
+#endif } /* }}} */
@@ -470,14 +480,18 @@
size_t ret; char *p = (char *)buf; - size_t enlarged = zend_memory_usage(FALSE TSRMLS_CC); int iter = 0; MYSQLND_NET *net = &conn->net; size_t old_chunk_size = net->stream->chunk_size; +#endif +#if !MYSQLND_SILENT
DBG_ENTER("mysqlnd_read_body");
+ DBG_INF_FMT("chunk_size=%d", net->stream->chunk_size);
+#endif
+#if !MYSQLND_SILENT
DBG_RETURN(p - (char*)buf);
@@ -1194,10 +1215,10 @@ *(root_ptr +=len) = '\0'; root_ptr++; } - +/*
DBG_INF_FMT("FIELD=[%s.%s.%s]", meta->db? meta->db:"*NA*", meta->table? meta->table:"*NA*",
meta->name? meta->name:"*NA*");
- +*/ DBG_RETURN(PASS);
faulty_fake:
mysqlnd_packet_header header;
zend_uchar *new_buf = NULL, *p = *buf;
zend_bool first_iteration = TRUE;
- MYSQLND_NET *net = &conn->net;
DBG_ENTER("php_mysqlnd_read_row_ex");
-- MySQL Code Commits Mailing List For list archives: http://lists.mysql.com/commits To unsubscribe: http://lists.mysql.com/commits?unsub=lists@pantek.comReceived on Thu Aug 23 11:54:54 2007 This archive was generated by hypermail 2.1.8 : Sun Oct 07 2007 - 08:45:04 EDT |
||||||||||
|
|||||||||||