Details
Description
This is unsafe to do in an onCommit handler as commit handlers run after the storage transaction committed and the writable collection was published in the CollectionCatalog. This can result in read operations unexpectedly seeing changes to this index entry.