mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 23:04:20 +01:00
[t:2892] Fix error in toku_get_version_of_logs_on_disk() so version_found is always set correctly.
git-svn-id: file:///svn/toku/tokudb@26350 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
870a7f7934
commit
62eb359ca0
1 changed files with 5 additions and 4 deletions
|
@ -1388,11 +1388,12 @@ toku_get_version_of_logs_on_disk(const char *log_dir, BOOL *found_any_logs, uint
|
||||||
uint64_t this_log_number;
|
uint64_t this_log_number;
|
||||||
BOOL is_log = is_a_logfile_any_version(de->d_name, &this_log_number, &this_log_version);
|
BOOL is_log = is_a_logfile_any_version(de->d_name, &this_log_number, &this_log_version);
|
||||||
if (is_log) {
|
if (is_log) {
|
||||||
if (found) {
|
if (!found) { // first log file found
|
||||||
highest_version = highest_version > this_log_version ? highest_version : this_log_version;
|
found = TRUE;
|
||||||
|
highest_version = this_log_version;
|
||||||
}
|
}
|
||||||
found = TRUE;
|
else
|
||||||
highest_version = this_log_version;
|
highest_version = highest_version > this_log_version ? highest_version : this_log_version;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue