Changeset: 5b47a7c73e0e for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=5b47a7c73e0e
Modified Files:
monetdb5/modules/mal/remote.c
Branch: default
Log Message:
Avoid assertions in stream library
The connection might have been lost, for which you can check
locally and avoid an assertion in the stream library.
diffs (14 lines):
diff --git a/monetdb5/modules/mal/remote.c b/monetdb5/modules/mal/remote.c
--- a/monetdb5/modules/mal/remote.c
+++ b/monetdb5/modules/mal/remote.c
@@ -596,6 +596,10 @@ str RMTget(Client cntxt, MalBlkPtr mb, M
* the server */
sout = mapi_get_to(c->mconn);
sin = mapi_get_from(c->mconn);
+ if ( sin == NULL || sout == NULL) {
+ mal_unset_lock(c->lock, "remote.get");
+ throw(MAL, "remote.get", "Connection lost");
+ }
/* call our remote helper to do this more efficiently */
mnstr_printf(sout, "remote.batbincopy(%s);\n", ident);
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list