Skip to content

Store: sync floating block indexes

Victor Allombert requested to merge vicall@may_sync_floating into master

This MR introduces a may_sync function allowing to synchronise the indexes (from the floating_stores) opened in RO mode. This is mandatory as the RO instances are not notified of the value added by a RW instance running concurrently. This is necessary in the context of !9490 .

This function is pretty cheap, see https://github.com/mirage/index/blob/main/src/index.ml#L348

Manually testing the MR

Green CI. This is dead code for now.

Checklist

  • Document the interface of any function added or modified (see the coding guidelines)
  • Document any change to the user interface, including configuration parameters (see node configuration)
  • Provide automatic testing (see the testing guide).
  • For new features and bug fixes, add an item in the appropriate changelog (docs/protocols/alpha.rst for the protocol and the environment, CHANGES.rst at the root of the repository for everything else).
  • Select suitable reviewers using the Reviewers field below.
  • Select as Assignee the next person who should take action on that MR

Merge request reports