Skip to content

Commit

Permalink
PXB-3370 : Full Backup fails while open file limit is reduced to 1024…
Browse files Browse the repository at this point in the history
… from 65536

Problem:
--------
A regression introduced by 6c9aa00 caused extra opening of files.

Fix:
----
remove extra file open
  • Loading branch information
satya-bodapati committed Sep 24, 2024
1 parent e525a8f commit ecf20bb
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions storage/innobase/fil/fil0fil.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2680,9 +2680,6 @@ dberr_t Fil_shard::get_file_size(fil_node_t *file, bool read_only_mode) {
OS_FILE_NORMAL, OS_DATA_FILE, read_only_mode, &success);
#endif /* !XTRABACKUP */

file->handle =
os_file_create(innodb_data_file_key, file->name, OS_FILE_OPEN,
OS_FILE_NORMAL, OS_DATA_FILE, read_only_mode, &success);
if (!success) {
#ifdef XTRABACKUP
if (opt_lock_ddl == LOCK_DDL_REDUCED) {
Expand Down

0 comments on commit ecf20bb

Please sign in to comment.