MDEV-21382 fix compilation without perfschema plugin

This commit is contained in:
Eugene Kosov 2020-01-08 22:53:03 +07:00
commit 3a3605f4b1
2 changed files with 25 additions and 8 deletions

View file

@ -1141,6 +1141,9 @@ to original un-instrumented file I/O APIs */
# define os_file_flush(file) os_file_flush_func(file)
#define os_file_flush_data(file) \
pfs_os_file_flush_data_func(file, __FILE__, __LINE__)
# define os_file_rename(key, oldpath, newpath) \
os_file_rename_func(oldpath, newpath)
@ -1220,6 +1223,14 @@ bool
os_file_flush_func(
os_file_t file);
/** NOTE! Use the corresponding macro os_file_flush_data(), not directly this
function!
Flushes only(!) data (excluding metadata) from OS page cache of a given file to
the disk.
@param[in] file handle to a file
@return true if success */
bool os_file_flush_data_func(os_file_t file);
/** Retrieves the last error number if an error occurs in a file io function.
The number should be retrieved before any other OS calls (because they may
overwrite the error number). If the number is not known to this program,