Commit 58af93ce authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 73108405
...@@ -486,20 +486,20 @@ func diffB(ctx context.Context, a, b *Bucket) (δ map[Key]Value, err error) { ...@@ -486,20 +486,20 @@ func diffB(ctx context.Context, a, b *Bucket) (δ map[Key]Value, err error) {
switch { switch {
case ka < kb: // -a[0] case ka < kb: // -a[0]
av = av[1:]
δ[ka] = VDEL δ[ka] = VDEL
av = av[1:]
case ka > kb: // +b[0] case ka > kb: // +b[0]
bv = bv[1:]
δ[kb] = vb δ[kb] = vb
bv = bv[1:]
// ka == kb // va->vb // ka == kb // va->vb
default: default:
av = av[1:]
bv = bv[1:]
if va != vb { if va != vb {
δ[ka] = vb δ[ka] = vb
} }
av = av[1:]
bv = bv[1:]
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment