diff options
author | unknown <guilhem@mysql.com> | 2003-07-12 15:06:40 +0200 |
---|---|---|
committer | unknown <guilhem@mysql.com> | 2003-07-12 15:06:40 +0200 |
commit | 9b8f7a09d6052db1d75bd8e224037d6e6ed151cf (patch) | |
tree | 53228ac586b0d3e05fb59d136ad5a99829400081 /sql/sql_class.h | |
parent | 917b4fb0bf2b403ada21f7416ff147e8b3876537 (diff) | |
download | mariadb-git-9b8f7a09d6052db1d75bd8e224037d6e6ed151cf.tar.gz |
removed 2 small useless if().
sql/log.cc:
a comment for the future.
sql/mysqld.cc:
if (p) is not needed: fn_ext() always returns a valid pointed; the way
to test if an extension was found is if (*p), not if (p).
But here even if there's no extension, we still want to truncate opt_name
to FN_REFLEN, so we always execute the code.
By design, the test was always 'false' (because we strip the extension before
testing if there's an extension) so log->set_no_rotate never executed.
sql/sql_class.h:
remove set_no_rotate as we don't need it.
Diffstat (limited to 'sql/sql_class.h')
-rw-r--r-- | sql/sql_class.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sql/sql_class.h b/sql/sql_class.h index cd622520df3..dfdcbcc996c 100644 --- a/sql/sql_class.h +++ b/sql/sql_class.h @@ -175,7 +175,6 @@ public: inline void unlock_index() { pthread_mutex_unlock(&LOCK_index);} inline IO_CACHE *get_index_file() { return &index_file;} inline uint32 get_open_count() { return open_count; } - inline void set_no_rotate(bool no_rotate_arg) {no_rotate= no_rotate_arg;} }; /* character conversion tables */ |