Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make tokudb to be built on MacOS X. #457

Merged
merged 1 commit into from
May 10, 2016

Conversation

vlad-lesin
Copy link
Contributor

The functions

pthread_mutex_timedlock()
pthread_rwlock_timedrdlock()
pthread_rwlock_timedwrlock()

are not implemented in MacOS X, the simplified implementation is added.

http://jenkins.percona.com/view/PS%205.6/job/percona-server-5.6-param/1120/

@laurynas-biveinis
Copy link
Contributor

LGTM

inline \
int \
timed_func_name(lock_type_name *mutex, \
const struct timespec *abs_timeout) { \
Copy link
Contributor

@george-lorch george-lorch May 9, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not quite the coding style that we are following for TokuDB. It should look more like:

inline int timed_func_name(
    lock_type_name* mutex,
    const struct timespec* abs_timeout) {

@george-lorch
Copy link
Contributor

So if you can touch up the style bits, this can be merged. Thanks!

The functions

pthread_mutex_timedlock()
pthread_rwlock_timedrdlock()
pthread_rwlock_timedwrlock()

are not implemented in MacOS X, the simplified implementation is added.
@vlad-lesin
Copy link
Contributor Author

George, the style is fixed.

@george-lorch george-lorch merged commit a146204 into percona:5.6 May 10, 2016
george-lorch pushed a commit to george-lorch/percona-server that referenced this pull request Feb 1, 2017
Upstream commit ID: 9b1fa3d6456042a0eb0e4b256a089866bf6af87d

Summary:
Although variable length arrays are supported by GCC 4.5 and later, they are not officially part of the C++11 specification and should probably be avoided for the moment.  Change the code to use a static array when possible and allocate a buffer when needed.

Resolves Issue percona#457 (facebook/mysql-5.6#457)
Closes facebook/mysql-5.6#458

Reviewed By: lth

Differential Revision: D4247122

Pulled By: jkedgar

fbshipit-source-id: 2189dcd

Conflicts:
	storage/rocksdb/ha_rocksdb.cc
george-lorch pushed a commit to george-lorch/percona-server that referenced this pull request Feb 3, 2017
Upstream commit ID: 9b1fa3d6456042a0eb0e4b256a089866bf6af87d

Summary:
Although variable length arrays are supported by GCC 4.5 and later, they are not officially part of the C++11 specification and should probably be avoided for the moment.  Change the code to use a static array when possible and allocate a buffer when needed.

Resolves Issue percona#457 (facebook/mysql-5.6#457)
Closes facebook/mysql-5.6#458

Reviewed By: lth

Differential Revision: D4247122

Pulled By: jkedgar

fbshipit-source-id: 2189dcd

Conflicts:
	storage/rocksdb/ha_rocksdb.cc
george-lorch pushed a commit to george-lorch/percona-server that referenced this pull request Feb 3, 2017
Upstream commit ID: 9b1fa3d6456042a0eb0e4b256a089866bf6af87d

Summary:
Although variable length arrays are supported by GCC 4.5 and later, they are not officially part of the C++11 specification and should probably be avoided for the moment.  Change the code to use a static array when possible and allocate a buffer when needed.

Resolves Issue percona#457 (facebook/mysql-5.6#457)
Closes facebook/mysql-5.6#458

Reviewed By: lth

Differential Revision: D4247122

Pulled By: jkedgar

fbshipit-source-id: 2189dcd

Conflicts:
	storage/rocksdb/ha_rocksdb.cc
george-lorch pushed a commit to george-lorch/percona-server that referenced this pull request Feb 3, 2017
Upstream commit ID: 9b1fa3d6456042a0eb0e4b256a089866bf6af87d

Summary:
Although variable length arrays are supported by GCC 4.5 and later, they are not officially part of the C++11 specification and should probably be avoided for the moment.  Change the code to use a static array when possible and allocate a buffer when needed.

Resolves Issue percona#457 (facebook/mysql-5.6#457)
Closes facebook/mysql-5.6#458

Reviewed By: lth

Differential Revision: D4247122

Pulled By: jkedgar

fbshipit-source-id: 2189dcd

Conflicts:
	storage/rocksdb/ha_rocksdb.cc
george-lorch pushed a commit to george-lorch/percona-server that referenced this pull request Feb 3, 2017
Upstream commit ID: 9b1fa3d6456042a0eb0e4b256a089866bf6af87d

Summary:
Although variable length arrays are supported by GCC 4.5 and later, they are not officially part of the C++11 specification and should probably be avoided for the moment.  Change the code to use a static array when possible and allocate a buffer when needed.

Resolves Issue percona#457 (facebook/mysql-5.6#457)
Closes facebook/mysql-5.6#458

Reviewed By: lth

Differential Revision: D4247122

Pulled By: jkedgar

fbshipit-source-id: 2189dcd

Conflicts:
	storage/rocksdb/ha_rocksdb.cc
inikep pushed a commit to inikep/percona-server that referenced this pull request Apr 23, 2020
Summary:
Although variable length arrays are supported by GCC 4.5 and later, they are not officially part of the C++11 specification and should probably be avoided for the moment.  Change the code to use a static array when possible and allocate a buffer when needed.

Resolves Issue percona#457 (facebook/mysql-5.6#457)
Closes facebook/mysql-5.6#458

Reviewed By: lloyd

Differential Revision: D4247122

Pulled By:
jkedgar

fbshipit-source-id: 2189dcd

fbshipit-source-id: 3d774c287b8
inikep pushed a commit to inikep/percona-server that referenced this pull request Feb 24, 2021
Summary:
Although variable length arrays are supported by GCC 4.5 and later, they are not officially part of the C++11 specification and should probably be avoided for the moment.  Change the code to use a static array when possible and allocate a buffer when needed.

Resolves Issue percona#457 (facebook/mysql-5.6#457)
Closes facebook/mysql-5.6#458

Reviewed By: lloyd

Differential Revision: D4247122

Pulled By:
jkedgar

fbshipit-source-id: 2189dcd

fbshipit-source-id: 3d774c287b8
inikep pushed a commit to inikep/percona-server that referenced this pull request Nov 15, 2021
Summary:
Although variable length arrays are supported by GCC 4.5 and later, they are not officially part of the C++11 specification and should probably be avoided for the moment.  Change the code to use a static array when possible and allocate a buffer when needed.

Resolves Issue percona#457 (facebook/mysql-5.6#457)
Closes facebook/mysql-5.6#458

Differential Revision: D4247122 (facebook/mysql-5.6@01089e0)

Pulled By: jkedgar

fbshipit-source-id: 58f532c61ee
ldonoso pushed a commit to ldonoso/percona-server that referenced this pull request Mar 15, 2022
Summary:
Although variable length arrays are supported by GCC 4.5 and later, they are not officially part of the C++11 specification and should probably be avoided for the moment.  Change the code to use a static array when possible and allocate a buffer when needed.

Resolves Issue percona#457 (facebook/mysql-5.6#457)
Closes facebook/mysql-5.6#458

Differential Revision: D4247122

Pulled By: jkedgar
inikep pushed a commit to inikep/percona-server that referenced this pull request Apr 9, 2024
Summary:
Although variable length arrays are supported by GCC 4.5 and later, they are not officially part of the C++11 specification and should probably be avoided for the moment.  Change the code to use a static array when possible and allocate a buffer when needed.

Resolves Issue percona#457 (facebook/mysql-5.6#457)
Closes facebook/mysql-5.6#458

Differential Revision: D4247122

Pulled By: jkedgar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants