Debian Codegraph @

test/command/suite/wal_recover/pat/reuse/sis.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|KEY_WITH_SIS 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 26 Data '{"_key" => i.times.inject("あ") {|r,| r.succ} * 10}'
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 load --table Data
33 [
34 {"_key": "あいうえおかきくけこ"}
35 ]
36
37 select Data
38
39 check --obj Data
40
41 #@copy-path #{db_path}.0000100.wal #{db_path}.0000100.wal.keep
42 _database_close
43
44 #@copy-path #{db_path}.0000100.keep #{db_path}.0000100
45 #@copy-path #{db_path}.0000100.wal.keep #{db_path}.0000100.wal
46 _database_reopen
47
48 select Data
49
50 check --obj Data