Skip to content

Commit 862b034

Browse files
author
Jan Lindström
committed
Fixed compiler errors.
1 parent 55fab3d commit 862b034

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

storage/innobase/srv/srv0start.cc

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1436,7 +1436,9 @@ srv_start_wait_for_purge_to_start()
14361436

14371437
/* JAN: TODO: */
14381438
/**********************************************************************************/
1439+
#ifdef UNIV_DEBUG
14391440
extern int timediff(struct timeval *g_time, struct timeval *s_time, struct timeval *d_time);
1441+
#endif
14401442
extern ibool buf_flush_start(buf_pool_t* buf_pool, enum buf_flush flush_type);
14411443
extern void buf_flush_end(buf_pool_t* buf_pool, enum buf_flush flush_type);
14421444
extern void buf_flush_common(enum buf_flush flush_type, ulint page_count);
@@ -1545,8 +1547,9 @@ int setup_wrk_itm(int items)
15451547

15461548
int flush_pool_instance(wrk_t *wi)
15471549
{
1550+
#ifdef UNIV_DEBUG
15481551
struct timeval p_start_time, p_end_time, d_time;
1549-
1552+
#endif
15501553
if (!wi) {
15511554
fprintf(stderr, "work item invalid wi:%p\n", wi);
15521555
return -1;
@@ -1575,8 +1578,10 @@ int flush_pool_instance(wrk_t *wi)
15751578
return -1;
15761579
}
15771580

1581+
#ifdef UNIV_DEBUG
15781582
/* Record time taken for the OP in usec */
15791583
gettimeofday(&p_start_time, 0x0);
1584+
#endif
15801585

15811586
if (wi->wr.flush_type == BUF_FLUSH_LRU) {
15821587
/* srv_LRU_scan_depth can be arbitrarily large value.
@@ -1595,10 +1600,11 @@ int flush_pool_instance(wrk_t *wi)
15951600
buf_flush_end(wi->wr.buf_pool, wi->wr.flush_type);
15961601
buf_flush_common(wi->wr.flush_type, wi->result);
15971602

1603+
#ifdef UNIV_DEBUG
15981604
gettimeofday(&p_end_time, 0x0);
15991605
timediff(&p_end_time, &p_start_time, &d_time);
1600-
16011606
wi->t_usec = (unsigned long)(d_time.tv_usec+(d_time.tv_sec*1000000));
1607+
#endif
16021608
return 0;
16031609
}
16041610

storage/tokudb/ft-index/ft/ft-ops.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2330,7 +2330,7 @@ basement_node_gc_all_les(BASEMENTNODE bn,
23302330
while (index < (num_leafentries_before = bn->data_buffer.omt_size())) {
23312331
void* keyp = NULL;
23322332
uint32_t keylen = 0;
2333-
LEAFENTRY leaf_entry;
2333+
LEAFENTRY leaf_entry = 0;
23342334
bn->data_buffer.fetch_klpair(index, &leaf_entry, &keylen, &keyp);
23352335
assert_zero(r);
23362336
ft_basement_node_gc_once(

storage/xtradb/srv/srv0start.cc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1510,7 +1510,10 @@ init_log_online(void)
15101510

15111511
/* JAN: TODO: */
15121512
/**********************************************************************************/
1513+
#ifdef UNIV_DEBUG
15131514
extern int timediff(struct timeval *g_time, struct timeval *s_time, struct timeval *d_time);
1515+
#endif
1516+
15141517
extern ibool buf_flush_start(buf_pool_t* buf_pool, buf_flush_t flush_type);
15151518
extern void buf_flush_end(buf_pool_t* buf_pool, buf_flush_t flush_type);
15161519
extern void buf_flush_common(buf_flush_t flush_type, ulint page_count);
@@ -1676,10 +1679,12 @@ int flush_pool_instance(wrk_t *wi)
16761679
buf_flush_end(wi->wr.buf_pool, wi->wr.flush_type);
16771680
buf_flush_common(wi->wr.flush_type, wi->result);
16781681

1682+
#ifdef UNIV_DEBUG
16791683
gettimeofday(&p_end_time, 0x0);
16801684
timediff(&p_end_time, &p_start_time, &d_time);
1681-
16821685
wi->t_usec = (unsigned long)(d_time.tv_usec+(d_time.tv_sec*1000000));
1686+
#endif
1687+
16831688
return 0;
16841689
}
16851690

0 commit comments

Comments
 (0)