github.com/cockroachdb/pebble@v0.0.0-20231214172447-ab4952c5f87b/replay/testdata/flushed_sstable_keys (about)

     1  commit
     2  set a a
     3  set b b
     4  set c c
     5  ----
     6  
     7  flush
     8  ----
     9  a.SET: a
    10  b.SET: b
    11  c.SET: c
    12  
    13  # Test that the keys in the batch are in the same order they were originally
    14  # committed, not sorted by user key.
    15  
    16  commit
    17  set c c
    18  set b b
    19  set a a
    20  ----
    21  
    22  flush
    23  ----
    24  c.SET: c
    25  b.SET: b
    26  a.SET: a
    27  
    28  # Test that the keys in the batch are in the same order they were originally
    29  # committed, not sorted by user key.
    30  
    31  commit
    32  set c c
    33  del b
    34  del-range d f
    35  singledel a
    36  ----
    37  
    38  flush
    39  ----
    40  c.SET: c
    41  b.DEL
    42  d.RANGEDEL-f
    43  a.SINGLEDEL
    44  
    45  commit
    46  set x foo
    47  range-key-del a z
    48  range-key-unset g h @3
    49  range-key-set l m @1 foo
    50  set a bar
    51  del y
    52  ----
    53  
    54  flush
    55  ----
    56  x.SET: foo
    57  a.RANGEKEYDEL-g
    58  g.RANGEKEYDEL-h
    59  h.RANGEKEYDEL-l
    60  l.RANGEKEYDEL-m
    61  m.RANGEKEYDEL-z
    62  g.RANGEKEYUNSET-h: @3
    63  l.RANGEKEYSET-m: @1 → foo
    64  a.SET: bar
    65  y.DEL