[Date Prev][Date Next]
(ITS#5773) bi_entry_get_rw() and overlays issue
Full_Name: Pierangelo Masarati
Submission from: (NULL) (188.8.131.52)
Submitted by: ando
I think bi_entry_get_rw() needs work. In fact, as also discussed in ITS#5628,
callers either return the entry or have no means to modify the arguments of the
request. This can be critical, for example, when slapo-rwm(5) is involved. In
many cases, it might need to rewrite the ndn, or to map the attribute and the
objectClass. However, this cannot be done without returning the entry, and thus
directly performing a bi_entry_get_rw() to the original database, bypassing any
further stacked overlay. Probably, the API of this call, and that of
bi_entry_release_rw() should be modified in conformity to that of BI_op_func,
possibly adding further structs to the main union.
I'm not going to implement this right now, as I fear I might have overlooked
something. Moreover, this change would have significant impact on existing
code, since these calls are widely used.
In the meanwhile I'm adding support for these two calls to slapo-rwm(5) along
the above lines.