Skip to content

Commit 363da42

Browse files
committed
Cleanup: Remove unnecessary declarations
1 parent bac16c7 commit 363da42

File tree

5 files changed

+17
-22
lines changed

5 files changed

+17
-22
lines changed

storage/innobase/btr/btr0defragment.cc

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,21 @@ possible. From experimentation it seems that reduce the target size by 512 every
5050
time will make sure the page is compressible within a couple of iterations. */
5151
#define BTR_DEFRAGMENT_PAGE_REDUCTION_STEP_SIZE 512
5252

53+
/** Item in the work queue for btr_degrament_thread. */
54+
struct btr_defragment_item_t
55+
{
56+
btr_pcur_t* pcur; /* persistent cursor where
57+
btr_defragment_n_pages should start */
58+
os_event_t event; /* if not null, signal after work
59+
is done */
60+
bool removed; /* Mark an item as removed */
61+
ulonglong last_processed; /* timestamp of last time this index
62+
is processed by defragment thread */
63+
64+
btr_defragment_item_t(btr_pcur_t* pcur, os_event_t event);
65+
~btr_defragment_item_t();
66+
};
67+
5368
/* Work queue for defragmentation. */
5469
typedef std::list<btr_defragment_item_t*> btr_defragment_wq_t;
5570
static btr_defragment_wq_t btr_defragment_wq;

storage/innobase/include/btr0defragment.h

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*****************************************************************************
22
33
Copyright (C) 2013, 2014 Facebook, Inc. All Rights Reserved.
4-
Copyright (C) 2014, 2017, MariaDB Corporation.
4+
Copyright (C) 2014, 2020, MariaDB Corporation.
55
66
This program is free software; you can redistribute it and/or modify it under
77
the terms of the GNU General Public License as published by the Free Software
@@ -30,21 +30,6 @@ extern Atomic_counter<ulint> btr_defragment_compression_failures;
3030
extern Atomic_counter<ulint> btr_defragment_failures;
3131
extern Atomic_counter<ulint> btr_defragment_count;
3232

33-
/** Item in the work queue for btr_degrament_thread. */
34-
struct btr_defragment_item_t
35-
{
36-
btr_pcur_t* pcur; /* persistent cursor where
37-
btr_defragment_n_pages should start */
38-
os_event_t event; /* if not null, signal after work
39-
is done */
40-
bool removed; /* Mark an item as removed */
41-
ulonglong last_processed; /* timestamp of last time this index
42-
is processed by defragment thread */
43-
44-
btr_defragment_item_t(btr_pcur_t* pcur, os_event_t event);
45-
~btr_defragment_item_t();
46-
};
47-
4833
/******************************************************************//**
4934
Initialize defragmentation. */
5035
void

storage/innobase/include/dict0defrag_bg.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*****************************************************************************
22
3-
Copyright (c) 2016, 2018, MariaDB Corporation.
3+
Copyright (c) 2016, 2020, MariaDB Corporation.
44
55
This program is free software; you can redistribute it and/or modify it under
66
the terms of the GNU General Public License as published by the Free Software
@@ -27,8 +27,6 @@ Created 25/08/2016 Jan Lindström
2727
#ifndef dict0defrag_bg_h
2828
#define dict0defrag_bg_h
2929

30-
#include "os0event.h"
31-
#include "os0thread.h"
3230
#include "dict0types.h"
3331

3432
/** Indices whose defrag stats need to be saved to persistent storage.*/

storage/innobase/include/dict0stats_bg.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,8 @@ Created Apr 26, 2012 Vasil Dimov
2828
#define dict0stats_bg_h
2929

3030
#include "dict0types.h"
31-
#include "os0event.h"
3231
#include "os0thread.h"
3332

34-
3533
#ifdef HAVE_PSI_INTERFACE
3634
extern mysql_pfs_key_t dict_stats_recalc_pool_mutex_key;
3735
#endif /* HAVE_PSI_INTERFACE */

storage/innobase/include/srv0srv.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ Created 10/10/1995 Heikki Tuuri
4242
#pragma once
4343

4444
#include "log0log.h"
45-
#include "os0event.h"
4645
#include "que0types.h"
4746
#include "trx0types.h"
4847
#include "fil0fil.h"

0 commit comments

Comments
 (0)