sapling/eden
Adam Simpkins f334d7ab79 reduce code duplication in TreeInode create methods
Summary:
Most of the logic in TreeInode::create(), symlink() and mknod() was very
similar.  This adds a TreeInode::createImpl() helper method that these three
functions can share.

This also updates TreeInode::create() to throw EEXIST if the file in question
does exist, rather than using EDEN_BUG().  I believe it is possible (but
unlikely) for this to occur in practice since inode invalidation operations
triggered by a checkout are now processed asynchronously.

Reviewed By: chadaustin

Differential Revision: D7411500

fbshipit-source-id: 85d97995139eee6bff96381561fc28e76d7a2b7c
2018-03-28 13:13:52 -07:00
..
cli Fixed a race condition between initialization of RequestContext and its lookup. 2018-03-26 14:48:23 -07:00
docs add an overview doc for our threading strategy 2017-12-12 12:51:23 -08:00
fs reduce code duplication in TreeInode create methods 2018-03-28 13:13:52 -07:00
hooks Remove TARGETS files 2018-02-20 19:57:45 -08:00
integration send FUSE invalidation requests in a separate thread 2018-03-27 11:23:42 -07:00
py Remove TARGETS files 2018-02-20 19:57:45 -08:00
scripts unmount stale edenfs mounts in eden doctor 2018-01-19 11:06:51 -08:00
third-party Remove TARGETS files 2018-02-20 19:57:45 -08:00
AUTODEPS Set up arc lint to run autodeps automatically for Eden. 2017-11-21 18:23:41 -08:00
DEFS have hg_import_helper.py use the local mercurial code during tests 2018-02-15 22:11:38 -08:00