-
Notifications
You must be signed in to change notification settings - Fork 532
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix handling of SharedDirectory ops on subdirs created on a detached …
…data store (#16582) ## Description SharedDirectory was using -1 all the time for locally created subdirectories. This leads to bugs when considering the logic in isMessageForCurrentInstanceOfSubDirectory when the SharedDirectory is additionally detached: no ack op will ever be received for that subdir (since an op is never sent), but clients who load using the attachment summary may start sending ops which refers to the same subdirectory. merge-tree has a similar problem which is resolved by using -1 or 0 depending on the attach state of the DDS, see UnassignedSequenceNumber vs UniversalSequenceNumber. The fix here brings SharedDirectory handling closer to merge-tree's. Cherry-pick of #16578
- Loading branch information
Showing
2 changed files
with
31 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters