Changeset: 2892fce672ae for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=2892fce672ae
Modified Files:
gdk/gdk_select.c
testing/Mtest.py.in
Branch: Feb2013
Log Message:
Merge with Oct2012 branch.
diffs (74 lines):
diff --git a/gdk/gdk_select.c b/gdk/gdk_select.c
--- a/gdk/gdk_select.c
+++ b/gdk/gdk_select.c
@@ -21,19 +21,19 @@
#include "gdk.h"
#include "gdk_private.h"
-#define buninsfix(B,C,A,I,T,V,G,M,R) \
- do { \
- if ((I) == BATcapacity((B))) { \
- BATsetcount((B), (I)); \
- if (BATextend((B), \
- MIN(BATcapacity((B)) + (G), \
- (M))) == NULL) { \
- BBPreclaim((B)); \
- return (R); \
- } \
- A = (T *) C##loc((B), BUNfirst((B))); \
- } \
- A[(I)] = (V); \
+#define buninsfix(B,C,A,I,T,V,G,M,R) \
+ do { \
+ if ((I) == BATcapacity(B)) { \
+ BATsetcount((B), (I)); \
+ if (BATextend((B), \
+ MIN(BATcapacity(B) + (G), \
+ (M))) == NULL) { \
+ BBPreclaim(B); \
+ return (R); \
+ } \
+ A = (T *) C##loc((B), BUNfirst(B)); \
+ } \
+ A[(I)] = (V); \
} while (0)
static BAT *
@@ -183,8 +183,8 @@ do {
\
READ; \
buninsfix(bn, T, dst, cnt, oid, o, \
(BUN) ((dbl) cnt / (dbl) (p-r) \
- * (dbl) (q-p) * 1.1), \
- maximum, BUN_NONE); \
+ * (dbl) (q-p) * 1.1 + 1024), \
+ BATcapacity(bn) + q - p, BUN_NONE); \
cnt += (TEST); \
p++; \
} \
diff --git a/testing/Mtest.py.in b/testing/Mtest.py.in
--- a/testing/Mtest.py.in
+++ b/testing/Mtest.py.in
@@ -2640,7 +2640,22 @@ def DoIt(env, SERVER, CALL, TST, EXT, PR
SrvrOut.write(ln)
SrvrOut.flush()
if ln[:6] != 'Ready.':
- ServerReady = False
+ # If not ready, it may be that there are far to many
+ # network connections in use, all in TIME_WAIT status.
+ # We'll just wait a while for that to clear and try
+ # again.
+ pSrvr.stdin.close()
+ CollectIt(pSrvr.stdout, SrvrOut)
+ pSrvr.wait()
+ time.sleep(120)
+ pSrvr, pSrvrTimer = LaunchIt(Srvr,
'\nio.printf("\\nReady.\\n");\n', SrvrOut, SrvrErr, TIMEOUT)
+ ln="dummy"
+ while 0 < len(ln) and ln[:6] != 'Ready.':
+ ln=pSrvr.stdout.readline()
+ SrvrOut.write(ln)
+ SrvrOut.flush()
+ if ln[:6] != 'Ready.':
+ ServerReady = False
if ServerReady:
port = int(env['MAPIPORT'])
_______________________________________________
checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list