github.com/cockroachdb/pebble@v1.1.1-0.20240513155919-3622ade60459/testdata/snapshot (about)

     1  define
     2  set a 1
     3  snapshot 1
     4  set b 2
     5  snapshot 2
     6  set c 3
     7  snapshot 3
     8  ----
     9  
    10  iter snapshot=1
    11  first
    12  next
    13  prev
    14  ----
    15  a:1
    16  .
    17  a:1
    18  
    19  iter snapshot=2
    20  first
    21  next
    22  next
    23  prev
    24  ----
    25  a:1
    26  b:2
    27  .
    28  b:2
    29  
    30  iter snapshot=3
    31  first
    32  next
    33  next
    34  next
    35  prev
    36  ----
    37  a:1
    38  b:2
    39  c:3
    40  .
    41  c:3
    42  
    43  define
    44  set a 1
    45  snapshot 1
    46  set a 2
    47  snapshot 2
    48  set a 3
    49  snapshot 3
    50  ----
    51  
    52  iter snapshot=1
    53  first
    54  next
    55  prev
    56  ----
    57  a:1
    58  .
    59  a:1
    60  
    61  iter snapshot=2
    62  first
    63  next
    64  prev
    65  ----
    66  a:2
    67  .
    68  a:2
    69  
    70  iter snapshot=3
    71  first
    72  next
    73  prev
    74  ----
    75  a:3
    76  .
    77  a:3
    78  
    79  define
    80  set a 1
    81  snapshot 1
    82  set a 2
    83  snapshot 2
    84  set a 3
    85  snapshot 3
    86  compact a-b
    87  ----
    88  
    89  iter snapshot=1
    90  first
    91  next
    92  prev
    93  ----
    94  a:1
    95  .
    96  a:1
    97  
    98  iter snapshot=2
    99  first
   100  next
   101  prev
   102  ----
   103  a:2
   104  .
   105  a:2
   106  
   107  iter snapshot=3
   108  first
   109  next
   110  prev
   111  ----
   112  a:3
   113  .
   114  a:3
   115  
   116  define
   117  merge a 1
   118  snapshot 1
   119  merge a 2
   120  snapshot 2
   121  merge a 3
   122  snapshot 3
   123  compact a-b
   124  ----
   125  
   126  iter snapshot=1
   127  first
   128  next
   129  prev
   130  ----
   131  a:1
   132  .
   133  a:1
   134  
   135  iter snapshot=2
   136  first
   137  next
   138  prev
   139  ----
   140  a:12
   141  .
   142  a:12
   143  
   144  iter snapshot=3
   145  first
   146  next
   147  prev
   148  ----
   149  a:123
   150  .
   151  a:123
   152  
   153  # Fix for #2705. levelIter encounters two files where the first has seqnum
   154  # below snapshot seqnum, so obsolete points can be hidden. The second file has
   155  # a more recent seqnum so obsolete points cannot be hidden. But the in-place
   156  # modification of the filters slice was causing obsolete points to be hidden
   157  # in the second file.
   158  define block-size=1
   159  set a 1
   160  compact a-b
   161  set c 2
   162  snapshot 1
   163  set c 3
   164  compact c-d
   165  ----
   166  
   167  db-state
   168  ----
   169  6:
   170    000005:[a#10,SET-a#10,SET]
   171    000007:[c#12,SET-c#11,SET]
   172  
   173  iter snapshot=1
   174  first
   175  next
   176  next
   177  ----
   178  a:1
   179  c:2
   180  .