Skip to content

Commit

Permalink
MDEV-21499 Merge new release of InnoDB 5.7.29 to 10.2
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-m committed Jan 17, 2020
2 parents 08b0b2b + c25a066 commit 7b70cbd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions storage/innobase/include/univ.i
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*****************************************************************************
Copyright (c) 1994, 2016, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2013, 2019, MariaDB Corporation.
Copyright (c) 2013, 2020, MariaDB Corporation.
Copyright (c) 2008, Google Inc.
Portions of this file contain modifications contributed and copyrighted by
Expand Down Expand Up @@ -41,7 +41,7 @@ Created 1/20/1994 Heikki Tuuri

#define INNODB_VERSION_MAJOR 5
#define INNODB_VERSION_MINOR 7
#define INNODB_VERSION_BUGFIX 28
#define INNODB_VERSION_BUGFIX 29

/* The following is the InnoDB version as shown in
SELECT plugin_version FROM information_schema.plugins;
Expand Down
10 changes: 8 additions & 2 deletions storage/innobase/os/os0file.cc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/***********************************************************************
Copyright (c) 1995, 2017, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 1995, 2019, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2009, Percona Inc.
Copyright (c) 2013, 2019, MariaDB Corporation.
Copyright (c) 2013, 2020, MariaDB Corporation.
Portions of this file contain modifications contributed and copyrighted
by Percona Inc.. Those modifications are
Expand Down Expand Up @@ -1474,6 +1474,12 @@ os_file_get_parent_dir(
return(NULL);
}

if (last_slash - path < 0) {
/* Sanity check, it prevents gcc from trying to handle this case which
* results in warnings for some optimized builds */
return (NULL);
}

/* Non-trivial directory component */

return(mem_strdupl(path, last_slash - path));
Expand Down

0 comments on commit 7b70cbd

Please sign in to comment.