From 8e2a0f9f7dd9d0800d4c90156629c9f7ef5778f8 Mon Sep 17 00:00:00 2001 From: Ali Mohammed <ali.mohammed@hpe.com> Date: Fri, 17 Dec 2021 11:37:37 +0100 Subject: [PATCH] fix wired code duplication after rebase --- maestro/cdo.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/maestro/cdo.c b/maestro/cdo.c index 969aaade..449551aa 100644 --- a/maestro/cdo.c +++ b/maestro/cdo.c @@ -2630,21 +2630,6 @@ mstro_cdo__mark_transfer_complete(mstro_cdo cdo) } - int64_t n_pieces; - - /* reduce the number of outstanding segments by 1 as we received one part*/ - n_pieces = atomic_fetch_sub(&cdo->n_segments, 1); - - assert(n_pieces > 0); /* there is some outstanding communication */ - n_pieces--; /* decrement n_pieces to reflect cdo->n_segments after fetch and sub operation */ - - if (n_pieces != 0) - { - DEBUG("There are %zu outstanding pieces for CDO %zu \n", n_pieces, cdo->id.local_id); - return MSTRO_OK; - } - - /* clear in-transport flag */ s = s & ~(MSTRO_CDO_STATE_IN_TRANSPORT); switch(s) { -- GitLab