Changeset: 2f387f2bdbfa for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/2f387f2bdbfa
Modified Files:
monetdb5/optimizer/opt_mitosis.c
Branch: default
Log Message:
Compilation fix
diffs (17 lines):
diff --git a/monetdb5/optimizer/opt_mitosis.c b/monetdb5/optimizer/opt_mitosis.c
--- a/monetdb5/optimizer/opt_mitosis.c
+++ b/monetdb5/optimizer/opt_mitosis.c
@@ -182,11 +182,11 @@ OPTmitosisImplementation(Client cntxt, M
/* the number of pieces affects SF-100, going beyond 8x
increases
* the optimizer costs beyond the execution time
*/
- pieces = 4 * ceil((double)rowcnt / m / threads);
+ pieces = 4 * (int) ceil((double)rowcnt / m / threads);
} else if (rowcnt > MINPARTCNT) {
/* exploit parallelism, but ensure minimal partition size to
* limit overhead */
- pieces = 4 * ceil(MIN((double)rowcnt / MINPARTCNT,
threads));
+ pieces = 4 * (int) ceil(MIN((double)rowcnt /
MINPARTCNT, threads));
}
}
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list