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
14c34d96
Commit
14c34d96
authored
Jan 10, 2020
by
Will DeVries
Committed by
Sergei Petrunia
Mar 10, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add session variable to enable direct update.
parent
4e45e8a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
storage/clustrixdb/ha_clustrixdb.cc
storage/clustrixdb/ha_clustrixdb.cc
+15
-2
No files found.
storage/clustrixdb/ha_clustrixdb.cc
View file @
14c34d96
...
...
@@ -162,6 +162,7 @@ static MYSQL_THDVAR_BOOL(
NULL
,
1
);
// Per thread derived handler knob
static
MYSQL_THDVAR_BOOL
(
derived_handler
,
...
...
@@ -172,6 +173,15 @@ static MYSQL_THDVAR_BOOL(
1
);
static
MYSQL_THDVAR_BOOL
(
enable_direct_update
,
PLUGIN_VAR_NOCMDARG
,
""
,
NULL
,
NULL
,
1
);
bool
select_handler_setting
(
THD
*
thd
)
{
return
(
thd
==
NULL
)
?
false
:
THDVAR
(
thd
,
select_handler
);
...
...
@@ -542,8 +552,10 @@ int ha_clustrixdb::update_row(const uchar *old_data, const uchar *new_data)
int
ha_clustrixdb
::
direct_update_rows_init
(
List
<
Item
>
*
update_fields
)
{
DBUG_ENTER
(
"ha_clustrixdb::direct_update_rows_init"
);
int
error_code
=
0
;
DBUG_RETURN
(
error_code
);
THD
*
thd
=
ha_thd
();
if
(
!
THDVAR
(
thd
,
enable_direct_update
))
DBUG_RETURN
(
HA_ERR_WRONG_COMMAND
);
DBUG_RETURN
(
0
);
}
int
ha_clustrixdb
::
direct_update_rows
(
ha_rows
*
update_rows
)
...
...
@@ -1352,6 +1364,7 @@ static struct st_mysql_sys_var* clustrixdb_system_variables[] =
MYSQL_SYSVAR
(
row_buffer
),
MYSQL_SYSVAR
(
select_handler
),
MYSQL_SYSVAR
(
derived_handler
),
MYSQL_SYSVAR
(
enable_direct_update
),
NULL
};
...
...
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