Re: thread save mysql client...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 
> > 
> > maybe a better place would be the mysql folks. Theymight be able to tell 
> > you if the default configuration under Linux is with threads ( server & 
> > client ). And if there is a choice, how can one tell what one has.
> > If they cant tellwhat u have, then maybe a build would be good for your 
> > state of mind.
> >
> I actually have already spoken with them.  Their word is that one must
> use libmysqlclient_r, but I find that the RedHat built mysql does not
> provide this.  So what I wanted to know was the RedHat build actually
> thread safe due to a patch of some kind, or if it indeed was just not 
> thread safe.  In short I wanted RedHat's oppinion and those who use 
> RedHat's mysql build's opinion.

The answer to the question is that to test any a mysql client library
for thread safeness you just need to link against the appropriate library
and make the call:

	mysql_thread_safe()


which return true if it is thread safe and false otherwise.  So the following
code will make such a test in a fairly user friendly way:

	#include <stdio.h>
	#include <stdlib.h>


	main() {
		printf("mysql_thread_safe  %s\n", mysql_thread_safe() ? "yes" : "no");
		exit(0);
	}

As for whether or not AS 2.1 ships with a thread safe version of the mysqlclient 
libraries, the answer is "NO".

I guess I will need to file a bug in bugzilla.

Cheers...james



_______________________________________________
Redhat-devel-list mailing list
Redhat-devel-list@redhat.com
https://listman.redhat.com/mailman/listinfo/redhat-devel-list

[Index of Archives]     [Kernel Newbies]     [Red Hat General]     [Fedora]     [Red Hat Install]     [Linux Kernel Development]     [Yosemite News]

  Powered by Linux