Changeset: be4f133cb72d for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=be4f133cb72d
Modified Files:
clients/mapilib/mapi.c
Branch: Apr2012
Log Message:
undo commit 81690726f3f4 (mapi_mapi connect fix), it will be restored after
Apr2012-SP1
diffs (43 lines):
diff --git a/clients/mapilib/mapi.c b/clients/mapilib/mapi.c
--- a/clients/mapilib/mapi.c
+++ b/clients/mapilib/mapi.c
@@ -1036,7 +1036,6 @@ static int mapi_slice_row(struct MapiRes
static void mapi_store_bind(struct MapiResultSet *result, int cr);
static void parse_uri_query(Mapi mid, char *uri);
static void set_uri(Mapi mid);
-static MapiMsg connect_to_server(Mapi mid);
static int mapi_initialized = 0;
@@ -2047,11 +2046,10 @@ mapi_mapi(const char *host, int port, co
tmid = mapi_mapi("/tmp",
socks[i], "mero", "mero",
lang, dbname);
tmid->redirmax = 0;
- if (connect_to_server(tmid) ==
MOK &&
-
(mapi_start_talking(tmid) == MOK ||
-
*tmid->redirects != NULL ||
-
(tmid->errorstr != NULL &&
-
strstr(tmid->errorstr, "under maintenance") != NULL)))
+ if (mapi_reconnect(tmid) == MOK
||
+
*tmid->redirects != NULL ||
+ (tmid->errorstr
!= NULL &&
+
strstr(tmid->errorstr, "under maintenance") != NULL))
{
host = buf;
port = socks[i];
@@ -2071,11 +2069,10 @@ mapi_mapi(const char *host, int port, co
tmid = mapi_mapi("/tmp",
socks[i], "mero", "mero",
lang, dbname);
tmid->redirmax = 0;
- if (connect_to_server(tmid) ==
MOK &&
-
(mapi_start_talking(tmid) == MOK ||
-
*tmid->redirects != NULL ||
-
(tmid->errorstr != NULL &&
-
strstr(tmid->errorstr, "under maintenance") != NULL)))
+ if (mapi_reconnect(tmid) == MOK
||
+
*tmid->redirects != NULL ||
+ (tmid->errorstr
!= NULL &&
+
strstr(tmid->errorstr, "under maintenance") != NULL))
{
host = buf;
port = socks[i];
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list