github.com/cockroachdb/pebble@v1.1.2/tool/testdata/wal_dump (about)

     1  wal dump
     2  ----
     3  requires at least 1 arg(s), only received 0
     4  
     5  wal dump
     6  ../testdata/db-stage-2/000003.log
     7  ----
     8  000003.log
     9  0(21) seq=1 count=1
    10      SET(test formatter: foo,test value formatter: one)
    11  28(21) seq=2 count=1
    12      SET(test formatter: bar,test value formatter: two)
    13  56(23) seq=3 count=1
    14      SET(test formatter: baz,test value formatter: three)
    15  86(22) seq=4 count=1
    16      SET(test formatter: foo,test value formatter: four)
    17  115(17) seq=5 count=1
    18      DEL(test formatter: bar)
    19  EOF
    20  
    21  wal dump
    22  ../testdata/db-stage-2/000003.log
    23  --key=pretty:leveldb.BytewiseComparator
    24  --value=size
    25  ----
    26  000003.log
    27  0(21) seq=1 count=1
    28      SET(foo,<3>)
    29  28(21) seq=2 count=1
    30      SET(bar,<3>)
    31  56(23) seq=3 count=1
    32      SET(baz,<5>)
    33  86(22) seq=4 count=1
    34      SET(foo,<4>)
    35  115(17) seq=5 count=1
    36      DEL(bar)
    37  EOF
    38  
    39  wal dump
    40  --key=pretty:leveldb.BytewiseComparator
    41  --value=size
    42  ../testdata/db-stage-4/000006.log
    43  ----
    44  000006.log
    45  0(22) seq=6 count=1
    46      SET(foo,<4>)
    47  29(22) seq=7 count=1
    48      SET(quux,<3>)
    49  58(17) seq=8 count=1
    50      DEL(baz)
    51  EOF
    52  
    53  wal dump
    54  ../testdata/db-stage-4/000006.log
    55  --key=%x
    56  --value=%x
    57  ----
    58  000006.log
    59  0(22) seq=6 count=1
    60      SET(666f6f,66697665)
    61  29(22) seq=7 count=1
    62      SET(71757578,736978)
    63  58(17) seq=8 count=1
    64      DEL(62617a)
    65  EOF
    66  
    67  wal dump
    68  ../testdata/db-stage-4/000006.log
    69  --key=pretty:leveldb.BytewiseComparator
    70  --value=pretty:test-comparer
    71  ----
    72  000006.log
    73  0(22) seq=6 count=1
    74      SET(foo,test value formatter: five)
    75  29(22) seq=7 count=1
    76      SET(quux,test value formatter: six)
    77  58(17) seq=8 count=1
    78      DEL(baz)
    79  EOF
    80  
    81  wal dump
    82  ../testdata/db-stage-4/000006.log
    83  --key=pretty:test-comparer
    84  --value=%x
    85  ----
    86  000006.log
    87  0(22) seq=6 count=1
    88      SET(test formatter: foo,66697665)
    89  29(22) seq=7 count=1
    90      SET(test formatter: quux,736978)
    91  58(17) seq=8 count=1
    92      DEL(test formatter: baz)
    93  EOF
    94  
    95  wal dump
    96  ../testdata/db-stage-4/000006.log
    97  --key=pretty:leveldb.BytewiseComparator
    98  --value=quoted
    99  ----
   100  000006.log
   101  0(22) seq=6 count=1
   102      SET(foo,five)
   103  29(22) seq=7 count=1
   104      SET(quux,six)
   105  58(17) seq=8 count=1
   106      DEL(baz)
   107  EOF
   108  
   109  wal dump
   110  ./testdata/mixed/000004.log
   111  ----
   112  000004.log
   113  0(42) seq=30 count=4
   114      SET(test formatter: a@2,test value formatter: )
   115      RANGEKEYSET(test formatter: a-test formatter: z:{(#31,RANGEKEYSET,@3)})
   116      RANGEKEYUNSET(test formatter: a-test formatter: z:{(#32,RANGEKEYUNSET,@4)})
   117      RANGEKEYDEL(test formatter: a-test formatter: b:{(#33,RANGEKEYDEL)})
   118  EOF