Debian Codegraph @

test/command/suite/wal_recover/hash/var/reuse/separated/large.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_WAL_ROLE=primary
9
10 #@disable-logging
11 cache_limit --max 0
12 #@enable-logging
13
14 table_create Data TABLE_HASH_KEY|KEY_LARGE ShortText
15
16 load --table Data
17 [
18 {"_key": "9B>=XXXXX"}
19 ]
20
21 delete Data --filter true
22
23 check --obj Data
24
25 io_flush
26 #@copy-path #{db_path}.0000100 #{db_path}.0000100.keep
27
28 load --table Data
29 [
30 {"_key": "9B>=XXXXX"}
31 ]
32
33 check --obj Data
34
35 #@copy-path #{db_path}.0000100.wal #{db_path}.0000100.wal.keep
36 _database_close
37
38 #@copy-path #{db_path}.0000100.keep #{db_path}.0000100
39 #@copy-path #{db_path}.0000100.wal.keep #{db_path}.0000100.wal
40 _database_reopen
41
42 select Data
43
44 check --obj Data