Skip to content

Commit

Permalink
Issue 6459 - crash on 3.0/3.1 branch (389ds#6461)
Browse files Browse the repository at this point in the history
vlv_rebuild_scope_filter code looks fishy:
it aborts the dblayer_read_txn_begin txn with dblayer_txn_abort instead of dblayer_read_txn_abort
(Meaning that it tries to release the backend serial lock without having locked it.)
This generates assertion failure on some distributions.

Issue: 6459

Reviewed by: @tbordaz (Thanks!)
Fix verified bu @stanislavlevin  (Thanks!)
  • Loading branch information
progier389 authored Jan 2, 2025
1 parent d2b04ce commit f4553b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ldap/servers/slapd/back-ldbm/vlv.c
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ vlv_rebuild_scope_filter(backend *be)
}
slapi_rwlock_unlock(be->vlvSearchList_lock);
if (txn == &new_txn) {
dblayer_txn_abort(be, txn);
dblayer_read_txn_abort(be, txn);
}
slapi_pblock_destroy(pb);
}
Expand Down

0 comments on commit f4553b8

Please sign in to comment.