diff options
author | Raghavendra G <rgowdapp@redhat.com> | 2018-02-08 13:44:38 +0530 |
---|---|---|
committer | Raghavendra G <rgowdapp@redhat.com> | 2018-02-23 03:19:58 +0000 |
commit | 32f5bc795046fad2fc5dcdafafcf1e8c3df7d7a3 (patch) | |
tree | 85284f2ef9e4917890ff84fe2bd35ba84c5ec025 /xlators/cluster/dht/src/dht-rename.c | |
parent | cfbc524239b1d3bc417849e68379c81e83fd56d9 (diff) |
cluster/dht: store the 'reaction' on failures per lock
Currently its passed in dht_blocking_inode(entry)lk, which would be a
global value for all the locks passed in the argument. This would
be a limitation for cases where we want to ignore failures on only few
locks and fail for others.
Change-Id: I02cfbcaafb593ad8140c0e5af725c866b630fb6b
BUG: 1543279
Signed-off-by: Raghavendra G <rgowdapp@redhat.com>
Diffstat (limited to 'xlators/cluster/dht/src/dht-rename.c')
-rw-r--r-- | xlators/cluster/dht/src/dht-rename.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/xlators/cluster/dht/src/dht-rename.c b/xlators/cluster/dht/src/dht-rename.c index 3068499618c..2e39fe6c7ab 100644 --- a/xlators/cluster/dht/src/dht-rename.c +++ b/xlators/cluster/dht/src/dht-rename.c @@ -1620,14 +1620,16 @@ dht_rename_lock (call_frame_t *frame) goto err; lk_array[0] = dht_lock_new (frame->this, local->src_cached, &local->loc, - F_WRLCK, DHT_FILE_MIGRATE_DOMAIN, NULL); + F_WRLCK, DHT_FILE_MIGRATE_DOMAIN, NULL, + FAIL_ON_ANY_ERROR); if (lk_array[0] == NULL) goto err; if (local->dst_cached) { lk_array[1] = dht_lock_new (frame->this, local->dst_cached, &local->loc2, F_WRLCK, - DHT_FILE_MIGRATE_DOMAIN, NULL); + DHT_FILE_MIGRATE_DOMAIN, NULL, + FAIL_ON_ANY_ERROR); if (lk_array[1] == NULL) goto err; } @@ -1636,7 +1638,7 @@ dht_rename_lock (call_frame_t *frame) local->lock[0].layout.parent_layout.lk_count = count; ret = dht_blocking_inodelk (frame, lk_array, count, - FAIL_ON_ANY_ERROR, dht_rename_lock_cbk); + dht_rename_lock_cbk); if (ret < 0) { local->lock[0].layout.parent_layout.locks = NULL; local->lock[0].layout.parent_layout.lk_count = 0; |