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
27e05d92
Commit
27e05d92
authored
Jun 16, 2019
by
Sergei Petrunia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Post-merge fixes cont'd
parent
6152ecea
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
storage/rocksdb/ha_rocksdb.cc
storage/rocksdb/ha_rocksdb.cc
+8
-5
storage/rocksdb/mysql-test/rocksdb/t/disabled.def
storage/rocksdb/mysql-test/rocksdb/t/disabled.def
+3
-0
No files found.
storage/rocksdb/ha_rocksdb.cc
View file @
27e05d92
...
...
@@ -3726,7 +3726,7 @@ static Rdb_transaction *get_or_create_tx(THD *const thd) {
if
(
tx
==
nullptr
)
{
bool
rpl_skip_tx_api
=
false
;
// MARIAROCKS_NOT_YET.
if
((
rpl_skip_tx_api
&&
thd
->
rgi_slave
)
||
false
/* MARIAROCKS_NOT_YET: THDVAR(thd, master_skip_tx_api) && !thd->rgi_slave)*/
)
(
THDVAR
(
thd
,
master_skip_tx_api
)
&&
!
thd
->
rgi_slave
)
)
{
tx
=
new
Rdb_writebatch_impl
(
thd
);
}
else
{
...
...
@@ -8863,9 +8863,14 @@ rocksdb::Status ha_rocksdb::get_for_update(
bool
ha_rocksdb
::
is_blind_delete_enabled
()
{
THD
*
thd
=
ha_thd
();
/*
Note: in MariaDB, thd->lex->table_count is only set for multi-table DELETE,
not for single-table DELETE. So we check thd->lex->query_tables instead.
*/
return
(
THDVAR
(
thd
,
blind_delete_primary_key
)
&&
thd
->
lex
->
sql_command
==
SQLCOM_DELETE
&&
thd
->
lex
->
table_count
==
1
&&
table
->
s
->
keys
==
1
&&
thd
->
lex
->
query_tables
&&
!
thd
->
lex
->
query_tables
->
next_global
&&
table
->
s
->
keys
==
1
&&
!
has_hidden_pk
(
table
)
&&
!
thd
->
rgi_slave
);
}
...
...
@@ -13681,11 +13686,9 @@ bool ha_rocksdb::should_recreate_snapshot(const int rc,
* using TX API and skipping row locking.
*/
bool
ha_rocksdb
::
can_assume_tracked
(
THD
*
thd
)
{
#ifdef MARIAROCKS_NOT_YET
if
(
use_read_free_rpl
()
||
(
THDVAR
(
thd
,
blind_delete_primary_key
)))
{
if
(
/* MARIAROCKS_NOT_YET use_read_free_rpl() ||*/
(
THDVAR
(
thd
,
blind_delete_primary_key
)))
{
return
false
;
}
#endif
return
true
;
}
...
...
storage/rocksdb/mysql-test/rocksdb/t/disabled.def
View file @
27e05d92
...
...
@@ -35,6 +35,9 @@ bypass_select_basic : Query bypass is not supported
rocksdb_read_free_rpl : Read-Free replication is not supported
rocksdb_read_free_rpl_stress : Read-Free replication is not supported
blind_delete_rr : Read-Free replication is not supported
blind_delete_rc : Read-Free replication is not supported
##
## Tests that do not fit MariaDB's test environment. Upstream seems to test
## on boxes with much more RAM and CPU, some tests are more of a stress tests
...
...
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