diff options
| author | Marko Mäkelä <marko.makela@mariadb.com> | 2019-01-01 19:23:52 +0200 |
|---|---|---|
| committer | Marko Mäkelä <marko.makela@mariadb.com> | 2019-01-01 19:23:52 +0200 |
| commit | 2465d3e00b2f18c7d4967f9bb10438883682787d (patch) | |
| tree | 19b51fb3d008cc24cc8245dd4d5bac8a943e1066 | |
| parent | 88cc78c9c41ae6c1fde2d87c86d9ea9bb0f8a0f1 (diff) | |
| download | mariadb-git-2465d3e00b2f18c7d4967f9bb10438883682787d.tar.gz | |
Remove unnecessary __attribute__((unused))
| -rw-r--r-- | storage/innobase/srv/srv0srv.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/innobase/srv/srv0srv.cc b/storage/innobase/srv/srv0srv.cc index 025c93b8399..b2989a22037 100644 --- a/storage/innobase/srv/srv0srv.cc +++ b/storage/innobase/srv/srv0srv.cc @@ -2402,7 +2402,6 @@ loop: /** @return whether purge should exit due to shutdown */ static bool srv_purge_should_exit() { - uint32_t history_size __attribute__((unused)); ut_ad(srv_shutdown_state == SRV_SHUTDOWN_NONE || srv_shutdown_state == SRV_SHUTDOWN_CLEANUP); @@ -2413,7 +2412,8 @@ static bool srv_purge_should_exit() return(true); } /* Slow shutdown was requested. */ - if ((history_size = trx_sys.rseg_history_len)) { + uint32_t history_size = trx_sys.rseg_history_len; + if (history_size) { #if defined HAVE_SYSTEMD && !defined EMBEDDED_LIBRARY static ib_time_t progress_time; ib_time_t time = ut_time(); |
