sapling/eden/fs/journal
Wez Furlong d3202383c1 tidy up journal subscribers on unmount
Summary:
We have a couple of issues with the watchman/eden integration:

1. If you "win" the race, you can cause a segfault during shutdown
by changing files during unmount.  This causes the journal updating
code to trigger a send to the client, but the associated eventBase
has already been destroyed.

2. We don't proactively send any signal to the subscriber (in practice: watchman)
when we unmount.  Watchman detects the eden shutdown by noticing that its
socket has closed but has no way to detect an unmount.

This diff tries to connect the unmount with the set of subscribers and tries
to cause the thrift socket to close out.

Reviewed By: bolinfest

Differential Revision: D6162717

fbshipit-source-id: 42d4a005089cd9cddf204997b1643570488f04c3
2017-10-27 09:01:57 -07:00
..
test fix journal merging of remove followed by create events 2017-08-17 12:33:51 -07:00
Journal.cpp tidy up journal subscribers on unmount 2017-10-27 09:01:57 -07:00
Journal.h tidy up journal subscribers on unmount 2017-10-27 09:01:57 -07:00
JournalDelta.cpp augment JournalDelta with unclean paths on snapshot hash change 2017-10-16 22:46:54 -07:00
JournalDelta.h augment JournalDelta with unclean paths on snapshot hash change 2017-10-16 22:46:54 -07:00
TARGETS fix journal merging of remove followed by create events 2017-08-17 12:33:51 -07:00