Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
363da421
Commit
363da421
authored
Sep 27, 2020
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup: Remove unnecessary declarations
parent
bac16c7e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
22 deletions
+17
-22
storage/innobase/btr/btr0defragment.cc
storage/innobase/btr/btr0defragment.cc
+15
-0
storage/innobase/include/btr0defragment.h
storage/innobase/include/btr0defragment.h
+1
-16
storage/innobase/include/dict0defrag_bg.h
storage/innobase/include/dict0defrag_bg.h
+1
-3
storage/innobase/include/dict0stats_bg.h
storage/innobase/include/dict0stats_bg.h
+0
-2
storage/innobase/include/srv0srv.h
storage/innobase/include/srv0srv.h
+0
-1
No files found.
storage/innobase/btr/btr0defragment.cc
View file @
363da421
...
...
@@ -50,6 +50,21 @@ possible. From experimentation it seems that reduce the target size by 512 every
time will make sure the page is compressible within a couple of iterations. */
#define BTR_DEFRAGMENT_PAGE_REDUCTION_STEP_SIZE 512
/** Item in the work queue for btr_degrament_thread. */
struct
btr_defragment_item_t
{
btr_pcur_t
*
pcur
;
/* persistent cursor where
btr_defragment_n_pages should start */
os_event_t
event
;
/* if not null, signal after work
is done */
bool
removed
;
/* Mark an item as removed */
ulonglong
last_processed
;
/* timestamp of last time this index
is processed by defragment thread */
btr_defragment_item_t
(
btr_pcur_t
*
pcur
,
os_event_t
event
);
~
btr_defragment_item_t
();
};
/* Work queue for defragmentation. */
typedef
std
::
list
<
btr_defragment_item_t
*>
btr_defragment_wq_t
;
static
btr_defragment_wq_t
btr_defragment_wq
;
...
...
storage/innobase/include/btr0defragment.h
View file @
363da421
/*****************************************************************************
Copyright (C) 2013, 2014 Facebook, Inc. All Rights Reserved.
Copyright (C) 2014, 20
17
, MariaDB Corporation.
Copyright (C) 2014, 20
20
, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify it under
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;
extern
Atomic_counter
<
ulint
>
btr_defragment_failures
;
extern
Atomic_counter
<
ulint
>
btr_defragment_count
;
/** Item in the work queue for btr_degrament_thread. */
struct
btr_defragment_item_t
{
btr_pcur_t
*
pcur
;
/* persistent cursor where
btr_defragment_n_pages should start */
os_event_t
event
;
/* if not null, signal after work
is done */
bool
removed
;
/* Mark an item as removed */
ulonglong
last_processed
;
/* timestamp of last time this index
is processed by defragment thread */
btr_defragment_item_t
(
btr_pcur_t
*
pcur
,
os_event_t
event
);
~
btr_defragment_item_t
();
};
/******************************************************************//**
Initialize defragmentation. */
void
...
...
storage/innobase/include/dict0defrag_bg.h
View file @
363da421
/*****************************************************************************
Copyright (c) 2016, 20
18
, MariaDB Corporation.
Copyright (c) 2016, 20
20
, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify it under
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
#ifndef dict0defrag_bg_h
#define dict0defrag_bg_h
#include "os0event.h"
#include "os0thread.h"
#include "dict0types.h"
/** Indices whose defrag stats need to be saved to persistent storage.*/
...
...
storage/innobase/include/dict0stats_bg.h
View file @
363da421
...
...
@@ -28,10 +28,8 @@ Created Apr 26, 2012 Vasil Dimov
#define dict0stats_bg_h
#include "dict0types.h"
#include "os0event.h"
#include "os0thread.h"
#ifdef HAVE_PSI_INTERFACE
extern
mysql_pfs_key_t
dict_stats_recalc_pool_mutex_key
;
#endif
/* HAVE_PSI_INTERFACE */
...
...
storage/innobase/include/srv0srv.h
View file @
363da421
...
...
@@ -42,7 +42,6 @@ Created 10/10/1995 Heikki Tuuri
#pragma once
#include "log0log.h"
#include "os0event.h"
#include "que0types.h"
#include "trx0types.h"
#include "fil0fil.h"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment