diff options
author | unknown <guilhem@mysql.com> | 2003-12-08 20:53:46 +0100 |
---|---|---|
committer | unknown <guilhem@mysql.com> | 2003-12-08 20:53:46 +0100 |
commit | 9a1cb59cd721a5a3a7e8a4ea1720fddc3d449892 (patch) | |
tree | 6ce1598fed7aede90007c24b8509c11d8edba8e7 /sql/sql_rename.cc | |
parent | c121a7357046a64463cdb597e0fd28d4015113e2 (diff) | |
download | mariadb-git-9a1cb59cd721a5a3a7e8a4ea1720fddc3d449892.tar.gz |
Create PID file with O_TRUNC, so that it is emptied before it is written to.
Otherwise, if the previous run ended with a crash, and the PID was 1234,
and you have rebooted the machine and the new PID is 99 then in the PID
file you will have 9934.
Note: users of mysqld_safe did not have the problem because this script
deletes the PID file before starting mysqld.
Diffstat (limited to 'sql/sql_rename.cc')
0 files changed, 0 insertions, 0 deletions