github.com/cockroachdb/pebble@v1.1.2/testdata/iterator_seek_opt_errors (about) 1 define 2 a.SET.1:a 3 b.SET.1:b 4 c.SET.1:c 5 d.SET.1:d 6 ---- 7 8 # Exercise noop optimization with no errors 9 10 iter 11 seek-ge aa 12 seek-ge aa 13 seek-ge aaa 14 seek-ge b 15 seek-ge bb 16 ---- 17 b: (b, .) 18 b: (b, .) 19 b: (b, .) 20 b: (b, .) 21 c: (c, .) 22 23 iter 24 seek-lt ddd 25 seek-lt ddd 26 seek-lt dd 27 seek-lt d 28 seek-lt c 29 ---- 30 d: (d, .) 31 d: (d, .) 32 d: (d, .) 33 c: (c, .) 34 b: (b, .) 35 36 # Exercise errors which should prevent seek optimizations. 37 38 iter seek-error=(0,1) 39 seek-ge a 40 seek-ge b 41 seek-ge c 42 seek-ge d 43 ---- 44 err=injecting error 45 err=injecting error 46 c: (c, .) 47 d: (d, .) 48 49 iter seek-error=(1) 50 seek-ge d 51 seek-ge a 52 seek-ge b 53 seek-ge b 54 ---- 55 d: (d, .) 56 err=injecting error 57 b: (b, .) 58 b: (b, .) 59 60 iter seek-error=(0,1) 61 seek-lt e 62 seek-lt d 63 seek-lt c 64 seek-lt b 65 ---- 66 err=injecting error 67 err=injecting error 68 b: (b, .) 69 a: (a, .) 70 71 iter seek-error=(1) 72 seek-lt b 73 seek-lt e 74 seek-lt e 75 ---- 76 a: (a, .) 77 err=injecting error 78 d: (d, .) 79 80 iter seek-error=(1) 81 seek-prefix-ge d 82 seek-prefix-ge a 83 seek-prefix-ge b 84 ---- 85 d: (d, .) 86 err=injecting error 87 b: (b, .)