Changeset: 3e7bd129f631 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=3e7bd129f631
Modified Files:
monetdb5/modules/mal/remote.c
Branch: default
Log Message:
Make sure we can debug the module
by passing the Client context for the file descriptor.
diffs (30 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
@@ -97,6 +97,8 @@ can be used to issue a safe, but blockin
* @- Implementation
*/
+/* #define _DEBUG_REMOTE*/
+
#define RMTT_L_ENDIAN 0<<1
#define RMTT_B_ENDIAN 1<<1
#define RMTT_32_BITS 0<<2
@@ -281,7 +283,7 @@ str RMTconnect(
* system, it only needs to exist for the client (i.e. it was once
* created).
*/
-str RMTdisconnect(int *ret, str *conn) {
+str RMTdisconnect(Client cntxt, int *ret, str *conn) {
connection c, t;
if (conn == NULL || *conn == NULL || strcmp(*conn, (str)str_nil) == 0)
@@ -293,6 +295,8 @@ str RMTdisconnect(int *ret, str *conn) {
*ret = 0;
#ifdef _DEBUG_REMOTE
mnstr_printf(cntxt->fdout, "#disconnect link %s\n", *conn);
+#else
+ (void) cntxt;
#endif
/* we need a lock because the same user can be handled by multiple
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list