mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 13:32:33 +01:00
Merge hundin.mysql.fi:/home/marko/j/mysql-4.0
into hundin.mysql.fi:/home/marko/i/mysql-4.0
This commit is contained in:
commit
d9d1957ebe
3 changed files with 11 additions and 0 deletions
|
@ -77,6 +77,11 @@ out of the LRU-list and keep a count of pending operations. When an operation
|
|||
completes, we decrement the count and return the file node to the LRU-list if
|
||||
the count drops to zero. */
|
||||
|
||||
/* When mysqld is run, the default directory "." is the mysqld datadir,
|
||||
but in the MySQL Embedded Server Library and ibbackup it is not the default
|
||||
directory, and we must set the base file path explicitly */
|
||||
const char* fil_path_to_mysql_datadir = ".";
|
||||
|
||||
ulint fil_n_pending_log_flushes = 0;
|
||||
ulint fil_n_pending_tablespace_flushes = 0;
|
||||
|
||||
|
|
|
@ -16,6 +16,11 @@ Created 10/25/1995 Heikki Tuuri
|
|||
#include "ut0byte.h"
|
||||
#include "os0file.h"
|
||||
|
||||
/* When mysqld is run, the default directory "." is the mysqld datadir, but in
|
||||
ibbackup we must set it explicitly; the path must NOT contain the trailing
|
||||
'/' or '\' */
|
||||
extern const char* fil_path_to_mysql_datadir;
|
||||
|
||||
/* 'null' (undefined) page offset in the context of file spaces */
|
||||
#define FIL_NULL ULINT32_UNDEFINED
|
||||
|
||||
|
|
|
@ -714,6 +714,7 @@ innobase_init(void)
|
|||
|
||||
if (mysql_embedded) {
|
||||
default_path = mysql_real_data_home;
|
||||
fil_path_to_mysql_datadir = mysql_real_data_home;
|
||||
} else {
|
||||
/* It's better to use current lib, to keep paths short */
|
||||
current_dir[0] = FN_CURLIB;
|
||||
|
|
Loading…
Reference in a new issue