Debian Codegraph @

test/command/suite/wal_recover/pat/reuse/normal.test

raw
1 # _database_close/_database_reopen can't use with HTTP because requests via HTTP are always
2 # processed by workers. Workers never use primary WAL role.
3 #@require-interface stdio
4
5 #@require-feature message_pack
6
7 #$GROONGA_ALLOW_DATABASE_REOPEN=yes
8 #$GRN_ENABLE_REFERENCE_COUNT=no
9 #$GRN_WAL_ROLE=primary
10
11 #@disable-logging
12 cache_limit --max 0
13 #@enable-logging
14
15 table_create Data TABLE_PAT_KEY ShortText
16
17 #@disable-logging
18 # at least GRN_PAT_MDELINFOS (256) records are required to use delete
19 # info phase3.
20 #@generate-series 1 256 Data '{"_key" => "5B>=: #{i}"}'
21 #@enable-logging
22
23 select Data
24
25 io_flush
26 #@copy-path #{db_path}.0000100 #{db_path}.0000100.keep
27
28 delete Data --filter true
29
30 select Data
31
32 #@generate-series 1 2 Data '{"_key" => "5B>=: #{i}"}'
33
34 select Data
35
36 check --obj Data
37
38 #@copy-path #{db_path}.0000100.wal #{db_path}.0000100.wal.keep
39 _database_close
40
41 #@copy-path #{db_path}.0000100.keep #{db_path}.0000100
42 #@copy-path #{db_path}.0000100.wal.keep #{db_path}.0000100.wal
43 _database_reopen
44
45 select Data
46
47 check --obj Data