mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 14:54:20 +01:00
Addresses #1032 Windows port of [9472],[9496],[9507]
git-svn-id: file:///svn/toku/tokudb@9632 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
fa572f7546
commit
02a2649b01
1 changed files with 4 additions and 4 deletions
|
@ -11,6 +11,8 @@
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#ifdef TOKUDB
|
#ifdef TOKUDB
|
||||||
#include "key.h"
|
#include "key.h"
|
||||||
|
#include "cachetable.h"
|
||||||
|
#include "trace_mem.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
const char *pname;
|
const char *pname;
|
||||||
|
@ -199,9 +201,9 @@ static int counttotalbytes (DBT const *key, DBT const *data, void *extrav) {
|
||||||
e->rowcounter++;
|
e->rowcounter++;
|
||||||
if (do_mysql && 0) {
|
if (do_mysql && 0) {
|
||||||
static uint64_t expect_key = 0;
|
static uint64_t expect_key = 0;
|
||||||
uint64_t k = mysql_get_bigint(key->data+1);
|
uint64_t k = mysql_get_bigint((unsigned char*)key->data+1);
|
||||||
if (k != expect_key)
|
if (k != expect_key)
|
||||||
printf("%s:%d %"PRId64" %"PRId64"\n", __FUNCTION__, __LINE__, k, expect_key);
|
printf("%s:%d %"PRIu64" %"PRIu64"\n", __FUNCTION__, __LINE__, k, expect_key);
|
||||||
expect_key = k + 1;
|
expect_key = k + 1;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -399,14 +401,12 @@ int main (int argc, const char *argv[]) {
|
||||||
|
|
||||||
#if defined(TOKUDB)
|
#if defined(TOKUDB)
|
||||||
if (1) {
|
if (1) {
|
||||||
extern void toku_cachetable_print_hash_histogram (void);
|
|
||||||
toku_cachetable_print_hash_histogram();
|
toku_cachetable_print_hash_histogram();
|
||||||
}
|
}
|
||||||
|
|
||||||
// if tokudb has tracing enabled (see trace_mem.h) then this will dump
|
// if tokudb has tracing enabled (see trace_mem.h) then this will dump
|
||||||
// the trace data
|
// the trace data
|
||||||
if (0) {
|
if (0) {
|
||||||
extern void toku_print_trace_mem();
|
|
||||||
toku_print_trace_mem();
|
toku_print_trace_mem();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue