github.com/cockroachdb/pebble@v1.1.2/internal/keyspan/testdata/fragmenter_truncate_and_flush_to (about)

     1  build
     2  2: a--c
     3  1:  b--d
     4  truncate-and-flush-to c
     5  ----
     6  2: ab
     7  2:  bc
     8  1:  bc
     9  1:   cd
    10  
    11  build
    12  truncate-and-flush-to c
    13  1:  b--d
    14  ----
    15  pebble: start key (b) < flushed key (c)
    16  
    17  build
    18  truncate-and-flush-to c
    19  truncate-and-flush-to b
    20  ----
    21  pebble: start key (b) < flushed key (c)
    22  
    23  # Call out of order
    24  
    25  build
    26  3: a--d
    27  2:    d--g
    28  truncate-and-flush-to c
    29  ----
    30  pebble: start key (c) < flushed key (d)
    31  
    32  build
    33  3: a--d
    34  truncate-and-flush-to a
    35  ----
    36  3: a--d
    37  
    38  build
    39  3: a--d
    40  2:    d--g
    41  truncate-and-flush-to d
    42  ----
    43  3: a--d
    44  2:    d--g
    45  
    46  build
    47  2: a----f
    48  truncate-and-flush-to c
    49  ----
    50  2: a-c
    51  2:   c--f
    52  
    53  build
    54  2: a----f
    55  truncate-and-flush-to f
    56  ----
    57  2: a----f
    58  
    59  build
    60  2: a----f
    61  truncate-and-flush-to g
    62  ----
    63  2: a----f
    64  
    65  build
    66  3: a-c
    67  1: a-----g
    68  truncate-and-flush-to d
    69  ----
    70  3: a-c
    71  1: a-c
    72  1:   cd
    73  1:    d--g
    74  
    75  build
    76  2: a---e
    77  1: a------h
    78  truncate-and-flush-to c
    79  ----
    80  2: a-c
    81  1: a-c
    82  2:   c-e
    83  1:   c-e
    84  1:     e--h
    85  
    86  build
    87  3: a-c
    88  2: a---e
    89  1: a-----g
    90  truncate-and-flush-to d
    91  3:    d----i
    92  ----
    93  3: a-c
    94  2: a-c
    95  1: a-c
    96  2:   cd
    97  1:   cd
    98  3:    de
    99  2:    de
   100  1:    de
   101  3:     e-g
   102  1:     e-g
   103  3:       g-i
   104  
   105  build
   106  3: a-c
   107  2: a-----g
   108  truncate-and-flush-to e
   109  ----
   110  3: a-c
   111  2: a-c
   112  2:   c-e
   113  2:     e-g