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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
eb500b8c
Commit
eb500b8c
authored
Feb 25, 2014
by
Rich Prohaska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#178 destroy ule status partitioned counters
parent
21421e1f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
6 deletions
+16
-6
ft/ft-ops.cc
ft/ft-ops.cc
+3
-0
ft/ule.cc
ft/ule.cc
+10
-6
ft/ule.h
ft/ule.h
+3
-0
No files found.
ft/ft-ops.cc
View file @
eb500b8c
...
...
@@ -213,6 +213,7 @@ basement nodes, bulk fetch, and partial fetch:
#include "leafentry.h"
#include "xids.h"
#include "ft_msg.h"
#include "ule.h"
#include <toku_race_tools.h>
...
...
@@ -6456,6 +6457,7 @@ int toku_ft_layer_init(void) {
partitioned_counters_init
();
status_init
();
txn_status_init
();
toku_ule_status_init
();
toku_checkpoint_init
();
toku_ft_serialize_layer_init
();
toku_mutex_init
(
&
ft_open_close_lock
,
NULL
);
...
...
@@ -6470,6 +6472,7 @@ void toku_ft_layer_destroy(void) {
toku_checkpoint_destroy
();
status_destroy
();
txn_status_destroy
();
toku_ule_status_destroy
();
toku_context_status_destroy
();
partitioned_counters_destroy
();
toku_scoped_malloc_destroy
();
...
...
ft/ule.cc
View file @
eb500b8c
...
...
@@ -133,8 +133,7 @@ static LE_STATUS_S le_status;
#define STATUS_INIT(k,c,t,l,inc) TOKUDB_STATUS_INIT(le_status, k, c, t, "le: " l, inc)
static
void
status_init
(
void
)
{
void
toku_ule_status_init
(
void
)
{
// Note, this function initializes the keyname, type, and legend fields.
// Value fields are initialized to zero by compiler.
STATUS_INIT
(
LE_MAX_COMMITTED_XR
,
nullptr
,
UINT64
,
"max committed xr"
,
TOKU_ENGINE_STATUS
);
...
...
@@ -149,10 +148,15 @@ status_init(void) {
}
#undef STATUS_INIT
void
toku_le_get_status
(
LE_STATUS
statp
)
{
if
(
!
le_status
.
initialized
)
status_init
();
void
toku_ule_status_destroy
(
void
)
{
for
(
int
i
=
0
;
i
<
LE_STATUS_NUM_ROWS
;
++
i
)
{
if
(
le_status
.
status
[
i
].
type
==
PARCOUNT
)
{
destroy_partitioned_counter
(
le_status
.
status
[
i
].
value
.
parcount
);
}
}
}
void
toku_le_get_status
(
LE_STATUS
statp
)
{
*
statp
=
le_status
;
}
...
...
ft/ule.h
View file @
eb500b8c
...
...
@@ -102,6 +102,9 @@ PATENT RIGHTS GRANT:
#include "txn_manager.h"
#include <util/mempool.h>
void
toku_ule_status_init
(
void
);
void
toku_ule_status_destroy
(
void
);
// opaque handles used by outside world (i.e. indexer)
typedef
struct
ule
*
ULEHANDLE
;
typedef
struct
uxr
*
UXRHANDLE
;
...
...
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