summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Kosov <claprix@yandex.ru>2020-02-19 12:51:08 +0300
committerEugene Kosov <claprix@yandex.ru>2020-02-19 12:51:08 +0300
commite62e285fc4642ff2871bbc819abd17d0aa51a800 (patch)
treec53ab336b7417b4241323b48100361ea466e1b1a
parent9ef2d29ff44de2013c95666a011b993e5c2e5674 (diff)
downloadmariadb-git-e62e285fc4642ff2871bbc819abd17d0aa51a800.tar.gz
remove unused function
-rw-r--r--storage/innobase/log/log0recv.cc21
1 files changed, 0 insertions, 21 deletions
diff --git a/storage/innobase/log/log0recv.cc b/storage/innobase/log/log0recv.cc
index ff2d0e3d3e1..b38c6045379 100644
--- a/storage/innobase/log/log0recv.cc
+++ b/storage/innobase/log/log0recv.cc
@@ -1228,27 +1228,6 @@ recv_find_max_checkpoint_0(ulint* max_field)
return(DB_ERROR);
}
-/** Return number of ib_logfile0..100 files */
-static size_t count_log_files()
-{
- size_t counter= 0;
- for (int i= 0; i < 101; i++)
- {
- auto path=
- get_log_file_path(LOG_FILE_NAME_PREFIX).append(std::to_string(i));
- os_file_stat_t stat;
- dberr_t err= os_file_get_status(path.c_str(), &stat, false, true);
- if (err)
- break;
-
- if (stat.type != OS_FILE_TYPE_FILE)
- break;
-
- counter++;
- }
- return counter;
-}
-
/** Same as cals_lsn_offset() except that it supports multiple files */
lsn_t log_t::file::calc_lsn_offset_old(lsn_t lsn) const
{