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
b76787b2
Commit
b76787b2
authored
Oct 28, 2017
by
Aleksey Midenkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SQL: removed CLI option --versioning-asof-timestamp
parent
0d3b8ed0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
30 deletions
+2
-30
sql/mysqld.cc
sql/mysqld.cc
+0
-23
sql/mysqld.h
sql/mysqld.h
+1
-6
sql/sys_vars.cc
sql/sys_vars.cc
+1
-1
No files found.
sql/mysqld.cc
View file @
b76787b2
...
...
@@ -9450,29 +9450,6 @@ mysqld_get_one_option(int optid, const struct my_option *opt, char *argument)
WSREP_SYNC_WAIT_BEFORE_READ
);
break
;
#endif
/* WITH_WSREP */
case
OPT_VERS_ASOF_TIMESTAMP
:
int
type
=
find_type
(
argument
,
opt
->
typelib
,
FIND_TYPE_BASIC
);
st_vers_asof_timestamp
&
out
=
global_system_variables
.
vers_asof_timestamp
;
if
(
type
)
{
out
.
type
=
type
-
1
;
DBUG_ASSERT
(
out
.
type
<
FOR_SYSTEM_TIME_AS_OF
);
}
else
{
out
.
type
=
FOR_SYSTEM_TIME_AS_OF
;
MYSQL_TIME_STATUS
status
;
bool
err
=
str_to_datetime
(
argument
,
strlen
(
argument
),
&
out
.
ltime
,
0
,
&
status
);
if
(
err
||
(
status
.
warnings
&
~
MYSQL_TIME_NOTE_TRUNCATED
))
{
sql_print_error
(
"Can't start server: "
"cannot process --%s=%.*s"
,
opt
->
name
,
FN_REFLEN
,
argument
);
return
1
;
}
}
break
;
}
return
0
;
}
...
...
sql/mysqld.h
View file @
b76787b2
...
...
@@ -193,15 +193,11 @@ enum vers_range_type_t
struct
st_vers_asof_timestamp
{
const
char
*
getopt_value
;
ulong
type
;
MYSQL_TIME
ltime
;
st_vers_asof_timestamp
()
:
getopt_value
(
NULL
),
type
(
FOR_SYSTEM_TIME_UNSPECIFIED
)
{
DBUG_ASSERT
((
void
*
)
this
==
&
this
->
getopt_value
);
}
{}
};
enum
vers_hide_enum
...
...
@@ -701,7 +697,6 @@ enum options_mysqld
OPT_SSL_KEY
,
OPT_THREAD_CONCURRENCY
,
OPT_WANT_CORE
,
OPT_VERS_ASOF_TIMESTAMP
,
#ifdef WITH_WSREP
OPT_WSREP_CAUSAL_READS
,
OPT_WSREP_SYNC_WAIT
,
...
...
sql/sys_vars.cc
View file @
b76787b2
...
...
@@ -390,7 +390,7 @@ static Sys_var_charptr Sys_my_bind_addr(
const
char
*
Sys_var_vers_asof
::
asof_keywords
[]
=
{
"CURRENT"
,
"ALL"
,
NULL
};
static
Sys_var_vers_asof
Sys_vers_asof_timestamp
(
"versioning_asof_timestamp"
,
"Default AS OF value for versioned queries"
,
SESSION_VAR
(
vers_asof_timestamp
.
getopt_value
),
CMD_LINE
(
REQUIRED_ARG
,
OPT_VERS_ASOF_TIMESTAMP
)
,
SESSION_VAR
(
vers_asof_timestamp
.
type
),
NO_CMD_LINE
,
Sys_var_vers_asof
::
asof_keywords
,
DEFAULT
(
FOR_SYSTEM_TIME_UNSPECIFIED
));
static
Sys_var_mybool
Sys_vers_force
(
...
...
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