>  기사  >  데이터 베이스  >  MySQL too lazy to fix their shared libraries API_MySQL

MySQL too lazy to fix their shared libraries API_MySQL

WBOY
WBOY원래의
2016-06-01 13:16:041017검색

famzah (3425087)writes"Since version 5.5 MySQL started to ship the client/server binaries statically linked against the "libmysqlclient.a" library. This uses more disk space and also takes away the option to fix the shared code in the library once, rather than by recompiling every single binary which uses it.
Thesummary by Axel Schwenkefrom MariaDB is right on the target:

  1. In the past we exported every symbol from libmysqlclient.so (this was certainly bad)
  2. We changed this to export only API functions (good)
  3. Our own (MySQL) clients use non-API functions and thus don't work with the new dynamic lib. There is a word for this: it's a bug.
  4. We are too lazy to fix the clients (or extend the API). So we take the short path and link the clients with the static lib. I also have a word for this: disgusting.
"
성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.