We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f496dc4 commit 20010dcCopy full SHA for 20010dc
lib/cn/kvset_split.c
@@ -653,7 +653,7 @@ vblocks_split(
653
654
if (!move_left) {
655
/* Add the vblocks in [boundary, end] to the right kvset */
656
- boundary = overlapping_access ? split : split + 1;
+ boundary = (overlapping_access || move_right) ? split : split + 1;
657
for (uint16_t j = boundary; j <= end; j++) {
658
uint32_t alen;
659
uint64_t mbid;
@@ -724,7 +724,7 @@ vblocks_split(
724
if (!move_right) {
725
/* Add vblocks in [start, boundary] to the left kvset */
726
vbcnt = 0; /* reset vbcnt for the left kvset */
727
- boundary = split;
+ boundary = min(split, end);
728
for (uint16_t j = start; j <= boundary; j++) {
729
730
0 commit comments