Changeset: 0536b7590d19 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=0536b7590d19
Modified Files:
monetdb5/modules/mal/oltp.c
Branch: oltp
Log Message:
Test to force waiting
diffs (20 lines):
diff --git a/monetdb5/modules/mal/oltp.c b/monetdb5/modules/mal/oltp.c
--- a/monetdb5/modules/mal/oltp.c
+++ b/monetdb5/modules/mal/oltp.c
@@ -18,7 +18,7 @@
#include "mtime.h"
#define LOCKTIMEOUT 20 * 1000
-#define LOCKDELAY 20
+#define LOCKDELAY 200
typedef struct{
Client cntxt; // user holding the write lock
@@ -202,6 +202,7 @@ OLTPrelease(Client cntxt, MalBlkPtr mb,
if ( oltp_delay == FALSE )
return MAL_SUCCEED;
+ MT_sleep_ms(LOCKDELAY); // testing
MT_lock_set(&mal_oltpLock);
#ifdef _DEBUG_OLTP_
mnstr_printf(cntxt->fdout,"#OLTP release the locks %d:", cntxt->idx);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list