mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-01 04:26:48 +00:00
This method is both a convenience method to obtain the permit, as well as an abstraction to allow different implementations to get creative. For example, the main implementation, the one in multishard mutation query returns the permit of the saved reader one was successful. This ensures that on a multi-paged read the same permit is used across as much pages as possible. Much more importantly it ensures the evictable reader wrapping the actual reader both use the same permit.