github.com/zuoyebang/bitalostable@v1.0.1-0.20240229032404-e3b99a834294/testdata/manual_flush (about)

     1  batch
     2  set a 1
     3  set b 2
     4  ----
     5  
     6  # The first L0 table can have its seqnums zeroed.
     7  flush
     8  ----
     9  0.0:
    10    000005:[a#1,SET-b#2,SET]
    11  
    12  reset
    13  ----
    14  
    15  batch
    16  set a 1
    17  set b 2
    18  del a
    19  del b
    20  ----
    21  
    22  flush
    23  ----
    24  0.0:
    25    000005:[a#3,DEL-b#4,DEL]
    26  
    27  batch
    28  set a 3
    29  ----
    30  
    31  # A second (overlapping) L0 table will have non-zero seqnums.
    32  flush
    33  ----
    34  0.1:
    35    000007:[a#5,SET-a#5,SET]
    36  0.0:
    37    000005:[a#3,DEL-b#4,DEL]
    38  
    39  batch
    40  set c 4
    41  ----
    42  
    43  # A third (non-overlapping) L0 table will have non-zero seqnums.
    44  flush
    45  ----
    46  0.1:
    47    000007:[a#5,SET-a#5,SET]
    48  0.0:
    49    000005:[a#3,DEL-b#4,DEL]
    50    000009:[c#6,SET-c#6,SET]
    51  
    52  reset
    53  ----
    54  
    55  batch
    56  set a 1
    57  set b 2
    58  del-range a c
    59  ----
    60  
    61  flush
    62  ----
    63  0.0:
    64    000005:[a#3,RANGEDEL-c#72057594037927935,RANGEDEL]
    65  
    66  reset
    67  ----
    68  
    69  batch
    70  set a 1
    71  set b 2
    72  ----
    73  
    74  async-flush
    75  ----
    76  0.0:
    77    000005:[a#1,SET-b#2,SET]
    78  
    79  # Test that synchronous flushes can happen even when a cleaning turn is held.
    80  reset
    81  ----
    82  
    83  acquire-cleaning-turn
    84  ----
    85  
    86  batch
    87  set a 1
    88  set b 2
    89  ----
    90  
    91  flush
    92  ----
    93  0.0:
    94    000005:[a#1,SET-b#2,SET]
    95  
    96  release-cleaning-turn
    97  ----