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
0a122637
Commit
0a122637
authored
Jan 09, 2024
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup: change a function, that always return 0, to void
parent
23e107d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
8 deletions
+14
-8
storage/spider/spd_param.cc
storage/spider/spd_param.cc
+14
-8
No files found.
storage/spider/spd_param.cc
View file @
0a122637
...
...
@@ -117,7 +117,7 @@ extern volatile ulonglong spider_mon_table_cache_version_req;
}
extern
handlerton
*
spider_hton_ptr
;
static
int
spider_trx_status_var
(
THD
*
thd
,
SHOW_VAR
*
var
,
char
*
buff
,
static
void
spider_trx_status_var
(
THD
*
thd
,
SHOW_VAR
*
var
,
char
*
buff
,
ulonglong
SPIDER_TRX
::*
counter
)
{
DBUG_ENTER
(
"spider_direct_update"
);
...
...
@@ -129,7 +129,7 @@ static int spider_trx_status_var(THD *thd, SHOW_VAR *var, char *buff,
*
(
ulonglong
*
)
buff
=
trx
?
trx
->*
counter
:
0
;
if
(
thd
!=
current_thd
)
mysql_mutex_unlock
(
&
thd
->
LOCK_thd_data
);
DBUG_
RETURN
(
0
)
;
DBUG_
VOID_RETURN
;
}
...
...
@@ -137,39 +137,45 @@ static int spider_trx_status_var(THD *thd, SHOW_VAR *var, char *buff,
static
int
spider_direct_update
(
THD
*
thd
,
SHOW_VAR
*
var
,
char
*
buff
)
{
DBUG_ENTER
(
"spider_direct_update"
);
DBUG_RETURN
(
spider_trx_status_var
(
thd
,
var
,
buff
,
&
SPIDER_TRX
::
direct_update_count
));
spider_trx_status_var
(
thd
,
var
,
buff
,
&
SPIDER_TRX
::
direct_update_count
);
DBUG_RETURN
(
0
);
}
static
int
spider_direct_delete
(
THD
*
thd
,
SHOW_VAR
*
var
,
char
*
buff
)
{
DBUG_ENTER
(
"spider_direct_delete"
);
DBUG_RETURN
(
spider_trx_status_var
(
thd
,
var
,
buff
,
&
SPIDER_TRX
::
direct_delete_count
));
spider_trx_status_var
(
thd
,
var
,
buff
,
&
SPIDER_TRX
::
direct_delete_count
);
DBUG_RETURN
(
0
);
}
#endif
static
int
spider_direct_order_limit
(
THD
*
thd
,
SHOW_VAR
*
var
,
char
*
buff
)
{
DBUG_ENTER
(
"spider_direct_order_limit"
);
DBUG_RETURN
(
spider_trx_status_var
(
thd
,
var
,
buff
,
&
SPIDER_TRX
::
direct_order_limit_count
));
spider_trx_status_var
(
thd
,
var
,
buff
,
&
SPIDER_TRX
::
direct_order_limit_count
);
DBUG_RETURN
(
0
);
}
static
int
spider_direct_aggregate
(
THD
*
thd
,
SHOW_VAR
*
var
,
char
*
buff
)
{
DBUG_ENTER
(
"spider_direct_aggregate"
);
DBUG_RETURN
(
spider_trx_status_var
(
thd
,
var
,
buff
,
&
SPIDER_TRX
::
direct_aggregate_count
));
spider_trx_status_var
(
thd
,
var
,
buff
,
&
SPIDER_TRX
::
direct_aggregate_count
);
DBUG_RETURN
(
0
);
}
static
int
spider_parallel_search
(
THD
*
thd
,
SHOW_VAR
*
var
,
char
*
buff
)
{
DBUG_ENTER
(
"spider_parallel_search"
);
DBUG_RETURN
(
spider_trx_status_var
(
thd
,
var
,
buff
,
&
SPIDER_TRX
::
parallel_search_count
));
spider_trx_status_var
(
thd
,
var
,
buff
,
&
SPIDER_TRX
::
parallel_search_count
);
DBUG_RETURN
(
0
);
}
#if defined(HS_HAS_SQLCOM) && defined(HAVE_HANDLERSOCKET)
static
int
spider_hs_result_free
(
THD
*
thd
,
SHOW_VAR
*
var
,
char
*
buff
)
{
DBUG_ENTER
(
"spider_hs_result_free"
);
DBUG_RETURN
(
spider_trx_status_var
(
thd
,
var
,
buff
,
&
SPIDER_TRX
::
hs_result_free_count
));
spider_trx_status_var
(
thd
,
var
,
buff
,
&
SPIDER_TRX
::
hs_result_free_count
);
DBUG_RETURN
(
0
);
}
#endif
...
...
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