You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mdb_put supports the MDB_RESERVE flag which allows a user to insert a value without any actual data. The function then returns the space for the user to write to via the data parameter. (see).
lmdb::dbi::put however uses a std::string_view data for its data parameter, so the allocated space cannot be handed back to the user. (so this is also an API problem)
I'm not sure on how this should be handled, as changing it to std::string_view& data would certainly break code? Maybe an extra method or overload would be good?
The text was updated successfully, but these errors were encountered:
mdb_put
supports theMDB_RESERVE
flag which allows a user to insert a value without any actual data. The function then returns the space for the user to write to via the data parameter. (see).lmdb::dbi::put however uses a
std::string_view data
for its data parameter, so the allocated space cannot be handed back to the user. (so this is also an API problem)I'm not sure on how this should be handled, as changing it to
std::string_view& data
would certainly break code? Maybe an extra method or overload would be good?The text was updated successfully, but these errors were encountered: