sapling/eden/fs/inodes
Adam Simpkins 2fedc3bcea update getScmStatus() to require the commit hash as an argument
Summary:
Change getScmStatus() so that callers must explicitly specify the commit to
diff against.  This should help avoid race conditions around commit or checkout
operations where the parent commit has just changed and eden returns status
information against a commit that wasn't what the client was expecting.

This should still maintain backwards compatibility with older clients that do
not send this parameter yet: we will simply receive the hash as an empty string
in this case, and we still provide the old behavior in this case.

Reviewed By: wez

Differential Revision: D7512338

fbshipit-source-id: 1fb4645dda13b9108c66c2daaa802ea3445ac5f2
2018-04-06 12:51:31 -07:00
..
test update getScmStatus() to require the commit hash as an argument 2018-04-06 12:51:31 -07:00
CheckoutAction.cpp simplify isSameAs checking of mode bits 2018-02-20 11:36:11 -08:00
CheckoutAction.h run clang-format across all C++ files 2017-11-03 16:02:03 -07:00
CheckoutContext.cpp send FUSE invalidation requests in a separate thread 2018-03-27 11:23:42 -07:00
CheckoutContext.h send FUSE invalidation requests in a separate thread 2018-03-27 11:23:42 -07:00
DeferredDiffEntry.cpp simplify isSameAs checking of mode bits 2018-02-20 11:36:11 -08:00
DeferredDiffEntry.h run clang-format across all C++ files 2017-11-03 16:02:03 -07:00
DiffContext.cpp check for std::generic_category when looking for errno errors 2018-03-20 13:38:45 -07:00
DiffContext.h update diff code to use previously retrieved UserInfo 2018-02-08 19:36:03 -08:00
Differ.cpp update getScmStatus() to require the commit hash as an argument 2018-04-06 12:51:31 -07:00
Differ.h update getScmStatus() to require the commit hash as an argument 2018-04-06 12:51:31 -07:00
EdenDispatcher.cpp check for std::generic_category when looking for errno errors 2018-03-20 13:38:45 -07:00
EdenDispatcher.h remove the fusell namespace 2018-03-19 17:01:52 -07:00
EdenFileHandle.cpp remove the fusell namespace 2018-03-19 17:01:52 -07:00
EdenFileHandle.h restructure FileInode open refcount management 2018-03-27 11:23:42 -07:00
EdenMount.cpp update getScmStatus() to require the commit hash as an argument 2018-04-06 12:51:31 -07:00
EdenMount.h update getScmStatus() to require the commit hash as an argument 2018-04-06 12:51:31 -07:00
FileInode.cpp reduce code duplication in TreeInode create methods 2018-03-28 13:13:52 -07:00
FileInode.h update Overlay APIs to take inode numbers instead of paths 2018-03-28 13:13:51 -07:00
InodeBase.cpp Always remember the inode numbers of children when unloading a tree 2018-04-06 11:05:53 -07:00
InodeBase.h Always remember the inode numbers of children when unloading a tree 2018-04-06 11:05:53 -07:00
InodeDiffCallback.h run clang-format across all C++ files 2017-11-03 16:02:03 -07:00
InodeError.cpp throw all errno exceptions as std::generic_category 2018-03-20 13:38:45 -07:00
InodeError.h throw all errno exceptions as std::generic_category 2018-03-20 13:38:45 -07:00
InodeMap.cpp delete saved, stale inode numbers from overlay during checkout 2018-04-06 11:05:53 -07:00
InodeMap.h make inode unloading methods non-const 2018-03-27 11:23:42 -07:00
InodePtr-defs.h run clang-format across all C++ files 2017-11-03 16:02:03 -07:00
InodePtr.cpp fix opt build 2018-03-12 22:22:59 -07:00
InodePtr.h add explicit conversion from std::unique_ptr to InodePtr 2018-03-09 13:37:08 -08:00
InodePtrFwd.h run clang-format across all C++ files 2017-11-03 16:02:03 -07:00
InodeTimestamps.cpp comment out unused parameters 2018-03-22 15:29:44 -07:00
InodeTimestamps.h store timestamps in memory with 64-bit EdenTimestamp 2018-02-15 16:31:43 -08:00
Overlay.cpp delete saved, stale inode numbers from overlay during checkout 2018-04-06 11:05:53 -07:00
Overlay.h delete saved, stale inode numbers from overlay during checkout 2018-04-06 11:05:53 -07:00
overlay.thrift decouple whether an entry has an inode number from materialization status 2018-03-23 18:21:21 -07:00
ParentInodeInfo.h run clang-format across all C++ files 2017-11-03 16:02:03 -07:00
ServerState.cpp move the clock to ServerState 2018-03-16 12:35:19 -07:00
ServerState.h remove the fusell namespace 2018-03-19 17:01:52 -07:00
TreeInode.cpp delete saved, stale inode numbers from overlay during checkout 2018-04-06 11:05:53 -07:00
TreeInode.h reduce code duplication in TreeInode create methods 2018-03-28 13:13:52 -07:00
TreeInodeDirHandle.cpp remove the fusell namespace 2018-03-19 17:01:52 -07:00
TreeInodeDirHandle.h remove the fusell namespace 2018-03-19 17:01:52 -07:00