Commit f47f289
MyRocks: fix thread_id_indexer_t::get_rnd_index compilation under macOS (facebook#1203)
Summary:
On macOS, get_curr_thread_id returns a pointer, which does not implicitly
convert to std::size_t. So reinterpret_cast it to std::uintptr_t first, which
then implicitly converts to std::size_t.
Patch by percona-ysorokin taken from
https://github.com/percona/percona-server/pull/4808/files#diff-981be3a881c5028de47081c4e03740624d79a39ae1109a8e09814d135bd152ed
Pull Request resolved: facebook#1203
Reviewed By: Pushapgl
Differential Revision: D38956490
Pulled By: hermanlee
fbshipit-source-id: c7f69681 parent 56479ef commit f47f289
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
87 | 89 | | |
88 | 90 | | |
89 | 91 | | |
| |||
0 commit comments