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
4be8cae5
Commit
4be8cae5
authored
Oct 09, 2016
by
Sergei Petrunia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Temporarily disable Read-Free replication in MariaRocks
parent
272c05df
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
storage/rocksdb/ha_rocksdb.cc
storage/rocksdb/ha_rocksdb.cc
+5
-1
storage/rocksdb/ha_rocksdb.h
storage/rocksdb/ha_rocksdb.h
+2
-0
No files found.
storage/rocksdb/ha_rocksdb.cc
View file @
4be8cae5
...
...
@@ -4723,6 +4723,7 @@ void ha_rocksdb::free_key_buffers()
m_pack_buffer
=
nullptr
;
}
#ifdef MARIAROCKS_NOT_YET
void
ha_rocksdb
::
set_use_read_free_rpl
(
const
char
*
whitelist
)
{
DBUG_ASSERT
(
whitelist
!=
nullptr
);
...
...
@@ -4740,6 +4741,7 @@ void ha_rocksdb::set_use_read_free_rpl(const char* whitelist)
m_use_read_free_rpl
=
regex_handler
.
matches
(
m_tbl_def
->
base_tablename
());
}
#endif
void
ha_rocksdb
::
set_skip_unique_check_tables
(
const
char
*
whitelist
)
{
...
...
@@ -4837,8 +4839,10 @@ int ha_rocksdb::open(const char *name, int mode, uint test_if_locked)
/* Index block size in MyRocks: used by MySQL in query optimization */
stats
.
block_size
=
rocksdb_tbl_options
.
block_size
;
#ifdef MARIAROCKS_NOT_YET // MDEV-10976
/* Determine at open whether we can use Read Free Replication or not */
set_use_read_free_rpl
(
THDVAR
(
ha_thd
(),
read_free_rpl_tables
));
#endif
/* Determine at open whether we should skip unique checks for this table */
set_skip_unique_check_tables
(
THDVAR
(
ha_thd
(),
skip_unique_check_tables
));
...
...
@@ -10647,7 +10651,6 @@ void ha_rocksdb::rpl_after_update_rows()
m_in_rpl_update_rows
=
false
;
}
#endif // MARIAROCKS_NOT_YET
/**
@brief
Read Free Replication can be used or not. Returning False means
...
...
@@ -10660,6 +10663,7 @@ bool ha_rocksdb::use_read_free_rpl()
return
((
m_in_rpl_delete_rows
||
m_in_rpl_update_rows
)
&&
!
has_hidden_pk
(
table
)
&&
m_use_read_free_rpl
);
}
#endif // MARIAROCKS_NOT_YET
double
ha_rocksdb
::
read_time
(
uint
index
,
uint
ranges
,
ha_rows
rows
)
{
...
...
storage/rocksdb/ha_rocksdb.h
View file @
4be8cae5
...
...
@@ -975,7 +975,9 @@ class ha_rocksdb: public my_core::handler
int
finalize_bulk_load
()
__attribute__
((
__warn_unused_result__
));
#ifdef MARIAROCKS_NOT_YET // MDEV-10976
void
set_use_read_free_rpl
(
const
char
*
whitelist
);
#endif
void
set_skip_unique_check_tables
(
const
char
*
whitelist
);
#ifdef MARIAROCKS_NOT_YET // MDEV-10976
...
...
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