Guest User

Untitled

a guest
Apr 26th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. There was a problem on MacOSX with a shared object ha_example.so.
  2. It used hash_search(). During build of ha_example.so no libmysys
  3. was specified. Since MacOSX had a hash_search() in the system
  4. library, it built the shared object so that the dynamic linker
  5. linked hash_search() to the system library, which caused a crash
  6. when called. To come around this, we renamed hash_search() to
  7. my_hash_search(), as we did long ago with hash_insert() and
  8. hash_reset(). However, this time we made the move complete with
  9. all names. To keep compatibility, we redefine the old names.
  10. Since every C and C++ file, that uses HASH, needs to include
  11. this file, the change is complete. Both names could be used
  12. in the code, but the my_* versions are recommended now.
Add Comment
Please, Sign In to add comment