Changeset: 1604b89d25c5 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=1604b89d25c5
Modified Files:
sql/storage/store.c
sql/test/BugTracker-2014/Tests/acidity-fail.Bug-3635.py
Branch: Apr2019
Log Message:
Speed up test.
When --forcemito is in effect, the store_manager thread check every
half second whether it needs to flush. It now also reduces the number
of required changes before it needs to flush. This means that the
test doesn't have to wait the full half minute anymore.
diffs (32 lines):
diff --git a/sql/storage/store.c b/sql/storage/store.c
--- a/sql/storage/store.c
+++ b/sql/storage/store.c
@@ -2094,6 +2094,7 @@ store_manager(void)
{
const int sleeptime = GDKdebug & FORCEMITOMASK ? 10 : 50;
const int timeout = GDKdebug & FORCEMITOMASK ? 500 : 50000;
+ const int changes = GDKdebug & FORCEMITOMASK ? 100 : 1000000;
MT_thread_setworking("sleeping");
while (!GDKexiting()) {
@@ -2111,7 +2112,7 @@ store_manager(void)
MT_lock_unset(&bs_lock);
return;
}
- if (!need_flush && logger_funcs.changes() < 1000000) {
+ if (!need_flush && logger_funcs.changes() < changes) {
MT_lock_unset(&bs_lock);
continue;
}
diff --git a/sql/test/BugTracker-2014/Tests/acidity-fail.Bug-3635.py
b/sql/test/BugTracker-2014/Tests/acidity-fail.Bug-3635.py
--- a/sql/test/BugTracker-2014/Tests/acidity-fail.Bug-3635.py
+++ b/sql/test/BugTracker-2014/Tests/acidity-fail.Bug-3635.py
@@ -54,7 +54,7 @@ c1.execute('insert into bar select * fro
# the logger restart
# An alternative would have been to generate at least SNAPSHOT_MINSIZE
# rows in one statement, but this way is simpler
-time.sleep(31)
+time.sleep(1)
print(query(c1, 'select * from foo'))
s.communicate()
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list