mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-17171: RocksDB Tables do not have "Creation Date"
- Add SLEEP() calls to the testcase to make it really test that the time doesn't change. - Always use .frm file creation time as a creation timestamp (attempts to re-use older create_time when the table DDL changes are not good because then create_time will change after server restart) - Use the same method names as the upstream patch does - Use std::atomic for m_update_time
This commit is contained in:
@@ -3592,7 +3592,7 @@ bool Rdb_tbl_def::put_dict(Rdb_dict_manager *const dict,
|
||||
return false;
|
||||
}
|
||||
|
||||
time_t Rdb_tbl_def::get_creation_time() {
|
||||
time_t Rdb_tbl_def::get_create_time() {
|
||||
time_t create_time = m_create_time;
|
||||
|
||||
if (create_time == CREATE_TIME_UNKNOWN) {
|
||||
|
Reference in New Issue
Block a user