Changeset: 8757c0e439ca for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=8757c0e439ca
Modified Files:
        sql/test/BugTracker-2009/Tests/lost_update.SF-2790020.py
Branch: linear-hashing
Log Message:

Removed time.sleep call at lost_update.SF-2790020 test. Instead call 
sys.flush_log to demand an immediate flush of the WAL


diffs (27 lines):

diff --git a/sql/test/BugTracker-2009/Tests/lost_update.SF-2790020.py 
b/sql/test/BugTracker-2009/Tests/lost_update.SF-2790020.py
--- a/sql/test/BugTracker-2009/Tests/lost_update.SF-2790020.py
+++ b/sql/test/BugTracker-2009/Tests/lost_update.SF-2790020.py
@@ -1,6 +1,6 @@
 import sys
 import os
-import time
+
 try:
     from MonetDBtesting import process
 except ImportError:
@@ -46,6 +46,7 @@ insert into lost_update_t1 (select * fro
 insert into lost_update_t1 (select * from lost_update_t1);
 insert into lost_update_t1 (select * from lost_update_t1);
 update lost_update_t1 set a = 2;
+call sys.flush_log();
 '''
 script3 = '''\
 select a from lost_update_t2;
@@ -62,7 +63,6 @@ def main():
 
     s = server()
     client(script2)
-    time.sleep(20)                      # wait until log is flushed originally 
60 sec
     server_stop(s)
 
     s = server()
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to