mirror of
https://github.com/MariaDB/server.git
synced 2026-05-07 07:35:32 +02:00
perfschema file instrumentation related changes
This commit is contained in:
parent
7c58e97bf6
commit
22b6d8487a
9 changed files with 60 additions and 23 deletions
|
|
@ -433,13 +433,13 @@ pfs_os_file_rename_func(
|
|||
PSI_file_locker_state state;
|
||||
struct PSI_file_locker* locker = NULL;
|
||||
|
||||
register_pfs_file_open_begin(
|
||||
register_pfs_file_rename_begin(
|
||||
&state, locker, key, PSI_FILE_RENAME, newpath,
|
||||
src_file, src_line);
|
||||
|
||||
bool result = os_file_rename_func(oldpath, newpath);
|
||||
|
||||
register_pfs_file_rename_end(locker, 0);
|
||||
register_pfs_file_rename_end(locker, oldpath, newpath, !result);
|
||||
|
||||
return(result);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue