|
|
@ -7733,7 +7733,6 @@ mdb_node_move(MDB_cursor *csrc, MDB_cursor *cdst) |
|
|
|
m3->mc_ki[csrc->mc_top]++; |
|
|
|
m3->mc_ki[csrc->mc_top]++; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mp = csrc->mc_pg[csrc->mc_top]; |
|
|
|
mp = csrc->mc_pg[csrc->mc_top]; |
|
|
|
for (m2 = csrc->mc_txn->mt_cursors[dbi]; m2; m2=m2->mc_next) { |
|
|
|
for (m2 = csrc->mc_txn->mt_cursors[dbi]; m2; m2=m2->mc_next) { |
|
|
@ -7748,6 +7747,26 @@ mdb_node_move(MDB_cursor *csrc, MDB_cursor *cdst) |
|
|
|
m3->mc_ki[csrc->mc_top] = cdst->mc_ki[cdst->mc_top]; |
|
|
|
m3->mc_ki[csrc->mc_top] = cdst->mc_ki[cdst->mc_top]; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} else |
|
|
|
|
|
|
|
/* Adding on the right, bump others down */ |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
mp = csrc->mc_pg[csrc->mc_top]; |
|
|
|
|
|
|
|
for (m2 = csrc->mc_txn->mt_cursors[dbi]; m2; m2=m2->mc_next) { |
|
|
|
|
|
|
|
if (csrc->mc_flags & C_SUB) |
|
|
|
|
|
|
|
m3 = &m2->mc_xcursor->mx_cursor; |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
m3 = m2; |
|
|
|
|
|
|
|
if (m3 == csrc) continue; |
|
|
|
|
|
|
|
if (m3->mc_pg[csrc->mc_top] == mp) { |
|
|
|
|
|
|
|
if (!m3->mc_ki[csrc->mc_top]) { |
|
|
|
|
|
|
|
m3->mc_pg[csrc->mc_top] = cdst->mc_pg[cdst->mc_top]; |
|
|
|
|
|
|
|
m3->mc_ki[csrc->mc_top] = cdst->mc_ki[cdst->mc_top]; |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
m3->mc_ki[csrc->mc_top]--; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/* Update the parent separators.
|
|
|
|
/* Update the parent separators.
|
|
|
|