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

     1  start
     2  ----
     3  
     4  create-manifest filenum=000001
     5  ----
     6  
     7  flush
     8  000002
     9  ----
    10  created src/000002.sst
    11  [JOB 0] flushed 1 memtable (100B) to L0 [000002] (10KB), in 0.1s (0.1s total), output rate 100KB/s
    12  
    13  # Wait for 000002.sst to be copied.
    14  
    15  wait
    16  ----
    17  dst:
    18    000002.sst
    19    MANIFEST-000001
    20  
    21  # The file 000002.sst should exist in both src and dst.
    22  
    23  ls src dst
    24  ----
    25  src:
    26    000002.sst
    27    MANIFEST-000001
    28  dst:
    29    000002.sst
    30    MANIFEST-000001
    31  
    32  cmp-files src/000002.sst dst/000002.sst
    33  ----
    34  equal
    35  
    36  # Now that the file has been copied, a clean should immediately delete it.
    37  
    38  clean
    39  src/000002.sst
    40  ----
    41  
    42  ls src dst
    43  ----
    44  src:
    45    MANIFEST-000001
    46  dst:
    47    000002.sst
    48    MANIFEST-000001
    49  
    50  stop
    51  ----