sapling/eden/fs/inodes
Wez Furlong 0f4132c35f ensure that we set materialized=true when loading overlay
Summary:
We were hitting an assertion in the case where we did a `mkdir`
followed by a `rename` followed by `getMaterializedEntries`.

The issue is that our in-memory representation has a boolean to indicate
whether a dir inode is materialized, but our serialization format does
not have this bit.  When we loaded the data we were not setting the
field to true and this was caught by the DCHECK.

If we have serialized data for a dir then it is, by definition, materialized
and we should just set that field to true.

Reviewed By: bolinfest

Differential Revision: D3900795

fbshipit-source-id: 62d8281e7a1009056d274888c9aff87664d2e09f
2016-09-26 13:54:14 -07:00
..
EdenMount.cpp implement getCurrentJournalPosition thrift API 2016-09-26 13:52:25 -07:00
EdenMount.h implement getCurrentJournalPosition thrift API 2016-09-26 13:52:25 -07:00
FileData.cpp add getMaterializedEntries thrift call 2016-09-26 13:52:24 -07:00
FileData.h eden: re-do overlay serialization 2016-09-09 16:57:58 -07:00
Overlay.cpp ensure that we set materialized=true when loading overlay 2016-09-26 13:54:14 -07:00
Overlay.h eden: re-do overlay serialization 2016-09-09 16:57:58 -07:00
overlay.thrift eden: re-do overlay serialization 2016-09-09 16:57:58 -07:00
TARGETS hook up journal functions to filesytem change operations 2016-09-26 13:52:25 -07:00
TreeEntryFileHandle.cpp hook up journal functions to filesytem change operations 2016-09-26 13:52:25 -07:00
TreeEntryFileHandle.h eden: add FileData::materialize 2016-05-16 14:59:49 -07:00
TreeEntryFileInode.cpp hook up journal functions to filesytem change operations 2016-09-26 13:52:25 -07:00
TreeEntryFileInode.h eden: merge overlay into the inode objects 2016-09-09 16:57:58 -07:00
TreeInode.cpp fix issue with renaming between different dirs 2016-09-26 13:52:25 -07:00
TreeInode.h add getMaterializedEntries thrift call 2016-09-26 13:52:24 -07:00
TreeInodeDirHandle.cpp eden: re-do overlay serialization 2016-09-09 16:57:58 -07:00
TreeInodeDirHandle.h Initial commit 2016-05-12 14:09:13 -07:00