diff options
author | Raghavendra G <rgowdapp@redhat.com> | 2014-07-17 21:59:26 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2014-07-30 02:17:52 -0700 |
commit | 45fbf99cb669e891a84a8228cef27973f5e774bf (patch) | |
tree | fdb9dd498c21045f787b8db68bfdea40d3c2f509 /xlators/storage/posix/src/posix.h | |
parent | b56719fc478590815b6b8bc1e5a7dee5194555df (diff) |
storage/posix: removing deleting entries in case of creation failures
The code is not atomic enough to not to delete a dentry created by a
prallel dentry creation operation.
Change-Id: I9bd6d2aa9e7a1c0688c0a937b02a4b4f56d7aa3d
BUG: 1117851
Signed-off-by: Raghavendra G <rgowdapp@redhat.com>
Reviewed-on: http://review.gluster.org/8327
Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators/storage/posix/src/posix.h')
-rw-r--r-- | xlators/storage/posix/src/posix.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xlators/storage/posix/src/posix.h b/xlators/storage/posix/src/posix.h index aa4a66c3051..efd52f00b18 100644 --- a/xlators/storage/posix/src/posix.h +++ b/xlators/storage/posix/src/posix.h @@ -228,4 +228,8 @@ int posix_get_ancestry (xlator_t *this, inode_t *leaf_inode, gf_dirent_t *head, char **path, int type, int32_t *op_errno, dict_t *xdata); + +void +posix_gfid_unset (xlator_t *this, dict_t *xdata); + #endif /* _POSIX_H */ |