Skip to content

Commit

Permalink
If keys are equal, prefer removal from dist_lsm
Browse files Browse the repository at this point in the history
  • Loading branch information
schuay committed May 26, 2016
1 parent 80b8969 commit 3b24eee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/k_lsm/k_lsm_inl.h
Expand Up @@ -106,7 +106,7 @@ k_lsm<K, V, Rlx>::delete_min(V &val)
m_shared.find_min(best_shared);

if (!best_dist.empty() && !best_shared.empty()) {
if (best_dist.m_key < best_shared.m_key) {
if (best_dist.m_key <= best_shared.m_key) {
COUNT_INC(dlsm_deletes);
return best_dist.take(val);
} else {
Expand Down

0 comments on commit 3b24eee

Please sign in to comment.