/ Check-in [a35551a5]
Login
SQLite training in Houston TX on 2019-11-05 (details)
Part of the 2019 Tcl Conference

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Clear global variable "seconds" before use in walthread.test.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: a35551a5305b5160b0eb511da7f8e6fb351ef271
User & Date: drh 2010-05-03 17:24:45
Context
2010-05-03
18:01
Add a test to simulate an OOM during log recovery to walfault.test. check-in: 7ed85e87 user: dan tags: trunk
17:24
Clear global variable "seconds" before use in walthread.test. check-in: a35551a5 user: drh tags: trunk
17:18
Fix a couple of errors in WAL code that can occur in an OOM situation. check-in: 9d3f3736 user: dan tags: trunk
Changes
Hide Diffs Unified Diffs Show Whitespace Changes Patch

Changes to test/walthread.test.

21
22
23
24
25
26
27

28
29
30
31
32
33
34
...
505
506
507
508
509
510
511
512
ifcapable !wal             { finish_test ; return }

set sqlite_walsummary_mmap_incr 64

# How long, in seconds, to run each test for. If a test is set to run for
# 0 seconds, it is omitted entirely.
#

set seconds(walthread-1) 20
set seconds(walthread-2) 20
set seconds(walthread-3) 20
set seconds(walthread-4) 20
set seconds(walthread-5) 1

# The parameter is the name of a variable in the callers context. The
................................................................................
  }
  puts "Database with large log file recovered. Now running clients..."
} -thread T 5 {
  db eval { SELECT count(*) FROM t1 }
}

finish_test








>







 







<
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
...
506
507
508
509
510
511
512

ifcapable !wal             { finish_test ; return }

set sqlite_walsummary_mmap_incr 64

# How long, in seconds, to run each test for. If a test is set to run for
# 0 seconds, it is omitted entirely.
#
unset -nocomplain seconds
set seconds(walthread-1) 20
set seconds(walthread-2) 20
set seconds(walthread-3) 20
set seconds(walthread-4) 20
set seconds(walthread-5) 1

# The parameter is the name of a variable in the callers context. The
................................................................................
  }
  puts "Database with large log file recovered. Now running clients..."
} -thread T 5 {
  db eval { SELECT count(*) FROM t1 }
}

finish_test