diff options
author | Pranith Kumar K <pkarampu@redhat.com> | 2013-02-28 14:50:16 +0530 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2013-04-03 23:03:10 -0700 |
commit | dcf3ecd3c08b37226481b81fb0f8b3987cbcbab4 (patch) | |
tree | 396bf4a65eeef7671ff3f6254586b40c3b2c05a2 /xlators/cluster/afr/src/afr-transaction.h | |
parent | 5cdd09c3087e7f0581392dd06d4a1d587176abcb (diff) |
cluster/afr: Treat all dir fop failure as success in changelog
For example:
If a new entry creation fop fails with EEXIST or a delete entry fop
fails with ENOENT, on all the subvols the fop is wound, then no
change took place to the directory. So we can treat that case as no
change happened to the directory.
Change-Id: I3b3a7931954da2166a9cba19ff9f76f37739d751
BUG: 860210
Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
Reviewed-on: http://review.gluster.org/4626
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'xlators/cluster/afr/src/afr-transaction.h')
-rw-r--r-- | xlators/cluster/afr/src/afr-transaction.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/cluster/afr/src/afr-transaction.h b/xlators/cluster/afr/src/afr-transaction.h index e95bc5b1491..55e8bbcca08 100644 --- a/xlators/cluster/afr/src/afr-transaction.h +++ b/xlators/cluster/afr/src/afr-transaction.h @@ -37,4 +37,7 @@ afr_set_delayed_post_op (call_frame_t *frame, xlator_t *this); void afr_delayed_changelog_wake_up (xlator_t *this, fd_t *fd); +void +__mark_all_success (int32_t *pending[], int child_count, + afr_transaction_type type); #endif /* __TRANSACTION_H__ */ |