Skip to content

Draft: refactor!: with_su() function

Denis Smirnov requested to merge fix_su into master

Summary

  • refactor!: with_su() function

BREAKING_CHANGE!: remove with_su() from vanilla session module and make it picodata-specific.

Previously both vanilla and picodata implementation had an ability to change session and effective users with su(uid) and with_su(uid, fn) functions. This logic differs form the Lua box.session.su() that changes only effective user for a function call (box.session.su(uid, fn, ..)) and both users for a regular box.session.su(uid). At the moment there is no good solution to switch only an effective user for vanilla, so lets make it picodata specific API.

Depends on picodata/tarantool!134

Ensure that

  • New code is covered by tests
  • API is documented
  • Changelog is up to date
  • Version is bumped in the appropriate Cargo.toml files
Edited by Denis Smirnov

Merge request reports