Commit 7388f953 authored by Olivier Bertrand's avatar Olivier Bertrand

-- Last wrappers version with support of Java Mongo discovery.

  modified:   storage/connect/JavaWrappers.jar

-- Typo
  modified:   storage/connect/ha_connect.cc
  modified:   storage/connect/plgdbutl.cpp
parent cfe3252a
This diff was suppressed by a .gitattributes entry.
...@@ -197,11 +197,6 @@ extern "C" { ...@@ -197,11 +197,6 @@ extern "C" {
char *ClassPath; char *ClassPath;
#endif // JDBC_SUPPORT #endif // JDBC_SUPPORT
//#if defined(__WIN__)
//CRITICAL_SECTION parsec; // Used calling the Flex parser
//#else // !__WIN__
//pthread_mutex_t parmut = PTHREAD_MUTEX_INITIALIZER;
//#endif // !__WIN__
pthread_mutex_t parmut; pthread_mutex_t parmut;
pthread_mutex_t usrmut; pthread_mutex_t usrmut;
pthread_mutex_t tblmut; pthread_mutex_t tblmut;
...@@ -682,7 +677,6 @@ static int connect_init_func(void *p) ...@@ -682,7 +677,6 @@ static int connect_init_func(void *p)
#if defined(__WIN__) #if defined(__WIN__)
sql_print_information("CONNECT: %s", compver); sql_print_information("CONNECT: %s", compver);
//InitializeCriticalSection((LPCRITICAL_SECTION)&parsec);
#else // !__WIN__ #else // !__WIN__
sql_print_information("CONNECT: %s", version); sql_print_information("CONNECT: %s", version);
#endif // !__WIN__ #endif // !__WIN__
...@@ -744,11 +738,7 @@ static int connect_done_func(void *) ...@@ -744,11 +738,7 @@ static int connect_done_func(void *)
JAVAConn::ResetJVM(); JAVAConn::ResetJVM();
#endif // JDBC_SUPPORT #endif // JDBC_SUPPORT
pthread_mutex_destroy(&parmut); #if !defined(__WIN__)
pthread_mutex_destroy(&tblmut);
#if defined(__WIN__)
//DeleteCriticalSection((LPCRITICAL_SECTION)&parsec);
#else // !__WIN__
PROFILE_End(); PROFILE_End();
#endif // !__WIN__ #endif // !__WIN__
...@@ -764,6 +754,8 @@ static int connect_done_func(void *) ...@@ -764,6 +754,8 @@ static int connect_done_func(void *)
pthread_mutex_unlock(&usrmut); pthread_mutex_unlock(&usrmut);
pthread_mutex_destroy(&usrmut); pthread_mutex_destroy(&usrmut);
pthread_mutex_destroy(&parmut);
pthread_mutex_destroy(&tblmut);
connect_hton= NULL; connect_hton= NULL;
DBUG_RETURN(error); DBUG_RETURN(error);
} // end of connect_done_func } // end of connect_done_func
......
...@@ -695,19 +695,11 @@ PDTP MakeDateFormat(PGLOBAL g, PCSZ dfmt, bool in, bool out, int flag) ...@@ -695,19 +695,11 @@ PDTP MakeDateFormat(PGLOBAL g, PCSZ dfmt, bool in, bool out, int flag)
/*********************************************************************/ /*********************************************************************/
/* Call the FLEX generated parser. In multi-threading mode the next */ /* Call the FLEX generated parser. In multi-threading mode the next */
/* instruction is included in an Enter/LeaveCriticalSection bracket. */ /* instruction is protected by mutex fmdflex using static variables. */
/*********************************************************************/ /*********************************************************************/
//#if defined(__WIN__)
// EnterCriticalSection((LPCRITICAL_SECTION)&parsec);
//#else // !__WIN__
pthread_mutex_lock(&parmut); pthread_mutex_lock(&parmut);
//#endif // !__WIN__
rc = fmdflex(pdp); rc = fmdflex(pdp);
//#if defined(__WIN__)
// LeaveCriticalSection((LPCRITICAL_SECTION)&parsec);
//#else // !__WIN__
pthread_mutex_unlock(&parmut); pthread_mutex_unlock(&parmut);
//#endif // !__WIN__
if (trace) if (trace)
htrc("Done: in=%s out=%s rc=%d\n", SVP(pdp->InFmt), SVP(pdp->OutFmt), rc); htrc("Done: in=%s out=%s rc=%d\n", SVP(pdp->InFmt), SVP(pdp->OutFmt), rc);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment