Debian Codegraph @

test/command/suite/wal_recover/db/auto_recovery/table/hash.expected

raw
1 table_create Data TABLE_HASH_KEY ShortText
2 [[0,0.0,0.0],true]
3 column_create Data content COLUMN_SCALAR ShortText
4 [[0,0.0,0.0],true]
5 load --table Data
6 [
7 {"_key": "a", "content": "a"},
8 {"_key": "abc", "content": "a and b and c"},
9 {"_key": "abcdef", "content": "a and b and c and d and e and f"}
10 ]
11 [[0,0.0,0.0],3]
12 delete Data --key abc
13 [[0,0.0,0.0],true]
14 dump
15 table_create Data TABLE_HASH_KEY ShortText
16 column_create Data content COLUMN_SCALAR ShortText
17
18 load --table Data
19 [
20 ["_key","content"],
21 ["a","a"],
22 ["abcdef","a and b and c and d and e and f"]
23 ]
24 _database_close
25 [[0,0.0,0.0],true]
26 _database_reopen
27 [[0,0.0,0.0],true]
28 #|e| [reader][read-entry][hash][recover][Data] must be map: <positive-integer>(2): path:<db/db.0000100>
29 #|n| [db][wal][recover] rebuild broken table: <Data>(256)
30 #|n| DDL:258:table_create #recovering#Data
31 #|n| spec:258:update:#recovering#Data:48(table:hash_key):0
32 #|n| [db][wal][recover] rebuild broken data column: <Data.content>(257)
33 #|n| DDL:259:column_create #recovering#Data content
34 #|n| spec:259:update:#recovering#Data.content:65(column:var_size):14(ShortText)
35 #|n| DDL:256:obj_remove #broken#Data
36 #|n| DDL:257:obj_remove #broken#Data.content
37 #|n| spec:257:remove:#broken#Data.content:65(column:var_size)
38 #|n| spec:256:remove:#broken#Data:48(table:hash_key)
39 #|n| [db][wal][recover] succeeded to rebuild broken table: <Data>(258)
40 dump
41 table_create Data TABLE_HASH_KEY ShortText
42 column_create Data content COLUMN_SCALAR ShortText
43
44 load --table Data
45 [
46 ["_key","content"],
47 ["a","a"],
48 ["abcdef","a and b and c and d and e and f"]
49 ]