Levi Tamasi
07a00828af
Fix potential ambiguities in/around port/sys_time.h ( #10045 )
...
Summary:
There are some time-related POSIX APIs that are not available on Windows
(e.g. `localtime_r`), which we have worked around by providing our own
implementations in `port/sys_time.h`. This workaround actually relies on
some ambiguity: on Windows, a call to `localtime_r` calls
`ROCKSDB_NAMESPACE::port::localtime_r` (which is pulled into
`ROCKSDB_NAMESPACE` by a using-declaration), while on other platforms
it calls the global `localtime_r`. This works fine as long as there is only one
candidate function; however, it breaks down when there is more than one
`localtime_r` visible in a scope.
The patch fixes this by introducing `ROCKSDB_NAMESPACE::port::{TimeVal, GetTimeOfDay, LocalTimeR}`
to eliminate any ambiguity.
Pull Request resolved: https://github.com/facebook/rocksdb/pull/10045
Test Plan: `make check`
Reviewed By: riversand963
Differential Revision: D36639372
Pulled By: ltamasi
fbshipit-source-id: fc13dbfa421b7c8918111a6d9e24ce77e91a7c50
2022-05-24 18:25:20 -07:00
..
2020-10-07 12:34:34 -07:00
2022-05-19 15:36:27 -07:00
2022-05-23 23:19:39 -07:00
2022-05-06 13:03:58 -07:00
2022-03-18 16:35:51 -07:00
2022-02-08 13:56:46 -08:00
2022-05-17 15:01:51 -07:00
2022-05-06 13:03:58 -07:00
2021-12-10 08:13:26 -08:00
2021-09-10 10:00:26 -07:00
2022-04-26 21:59:24 -07:00
2021-12-16 17:15:13 -08:00
2020-06-02 15:05:07 -07:00
2020-02-20 12:09:57 -08:00
2021-12-10 08:13:26 -08:00
2021-03-04 00:43:48 -08:00
2022-05-17 09:39:22 -07:00
2022-01-12 09:31:12 -08:00
2020-02-20 12:09:57 -08:00
2022-03-09 15:49:53 -08:00
2022-05-20 12:09:09 -07:00
2021-07-21 17:37:53 -07:00
2021-07-21 17:37:53 -07:00
2020-02-20 12:09:57 -08:00
2022-05-19 15:36:27 -07:00
2021-03-10 09:05:56 -08:00
2020-12-04 15:22:33 -08:00
2020-12-01 11:21:44 -08:00
2019-05-21 16:22:35 -07:00
2020-12-01 11:21:44 -08:00
2021-09-10 10:00:26 -07:00
2021-06-16 18:30:34 -07:00
2021-09-07 11:31:59 -07:00
2021-06-16 18:30:34 -07:00
2021-07-29 17:23:01 -07:00
2021-09-10 10:00:26 -07:00
2021-09-29 04:04:40 -07:00
2021-03-15 04:34:11 -07:00
2020-02-20 12:09:57 -08:00
2022-01-27 14:55:04 -08:00
2021-09-10 10:00:26 -07:00
2022-01-11 06:33:48 -08:00
2021-12-16 17:15:13 -08:00
2022-05-18 00:41:41 -07:00
2022-05-06 13:03:58 -07:00
2022-05-17 15:01:51 -07:00
2022-02-04 17:13:10 -08:00
2021-08-20 18:41:51 -07:00
2022-04-13 07:34:01 -07:00
2020-03-20 14:59:54 -07:00
2022-04-13 07:34:01 -07:00
2021-10-18 23:32:01 -07:00
2021-10-18 23:32:01 -07:00
2020-06-03 15:55:03 -07:00
2022-05-05 13:08:21 -07:00
2021-09-07 11:31:59 -07:00
2021-01-25 22:09:11 -08:00
2021-12-16 17:15:13 -08:00
2022-04-13 07:34:01 -07:00
2020-04-20 13:24:25 -07:00
2021-09-07 11:31:59 -07:00
2020-04-21 13:16:31 -07:00
2019-05-21 16:22:35 -07:00
2020-02-20 12:09:57 -08:00
2022-05-18 15:25:19 -07:00
2021-10-18 23:32:01 -07:00
2022-05-05 13:08:21 -07:00
2022-05-05 13:08:21 -07:00
2022-02-01 14:04:12 -08:00
2021-03-15 04:34:11 -07:00
2021-03-15 04:34:11 -07:00
2022-05-06 18:38:13 -07:00
2021-02-26 08:50:42 -08:00
2021-02-26 08:50:42 -08:00
2021-11-18 09:42:20 -08:00
2022-05-06 13:03:58 -07:00
2021-09-10 10:00:26 -07:00
2022-05-19 15:36:27 -07:00
2022-02-04 17:13:10 -08:00
2020-02-20 12:09:57 -08:00
2022-05-06 13:03:58 -07:00
2022-02-22 11:23:01 -08:00
2020-02-20 12:09:57 -08:00
2021-03-15 04:34:11 -07:00
2022-05-24 18:25:20 -07:00
2022-05-06 13:03:58 -07:00
2021-03-25 22:08:58 -07:00
2021-01-04 10:46:24 -08:00
2021-05-19 16:51:13 -07:00
2022-05-18 15:25:19 -07:00
2021-09-07 11:31:59 -07:00
2020-02-20 12:09:57 -08:00
2021-11-16 18:26:12 -08:00
2020-06-13 13:25:20 -07:00
2017-07-15 16:11:23 -07:00
2020-02-20 12:09:57 -08:00
2022-03-12 11:45:56 -08:00
2022-03-12 11:45:56 -08:00
2021-03-10 11:15:46 -08:00
2021-10-06 07:48:31 -07:00
2020-04-01 16:40:18 -07:00
2021-09-10 10:00:26 -07:00
2021-08-20 18:41:51 -07:00
2021-08-20 18:41:51 -07:00
2021-09-10 10:00:26 -07:00