github.com/petermattis/pebble@v0.0.0-20190905164901-ab51a2166067/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 . 18 19 iter snapshot=2 20 first 21 next 22 next 23 prev 24 ---- 25 a:1 26 b:2 27 . 28 . 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 . 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 . 60 61 iter snapshot=2 62 first 63 next 64 prev 65 ---- 66 a:2 67 . 68 . 69 70 iter snapshot=3 71 first 72 next 73 prev 74 ---- 75 a:3 76 . 77 . 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 . 97 98 iter snapshot=2 99 first 100 next 101 prev 102 ---- 103 a:2 104 . 105 . 106 107 iter snapshot=3 108 first 109 next 110 prev 111 ---- 112 a:3 113 . 114 . 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 . 134 135 iter snapshot=2 136 first 137 next 138 prev 139 ---- 140 a:21 141 . 142 . 143 144 iter snapshot=3 145 first 146 next 147 prev 148 ---- 149 a:321 150 . 151 .