flist->in_progress is only needed w/inc_recurese.
authorWayne Davison <wayned@samba.org>
Sat, 28 Jan 2012 18:39:21 +0000 (10:39 -0800)
committerWayne Davison <wayned@samba.org>
Sat, 28 Jan 2012 18:42:01 +0000 (10:42 -0800)
io.c

diff --git a/io.c b/io.c
index a21d81fe1aa994b8b959aa9c1bede74b056eaa14..88548980802f76548abd0de4f3bb7d2925740e7b 100644 (file)
--- a/io.c
+++ b/io.c
@@ -1046,7 +1046,8 @@ static void got_flist_entry_status(enum festatus status, int ndx)
                                if (status == FES_NO_SEND)
                                        flist_ndx_push(&hlink_list, -2); /* indicates a failure follows */
                                flist_ndx_push(&hlink_list, ndx);
-                               flist->in_progress++;
+                               if (inc_recurse)
+                                       flist->in_progress++;
                        }
                }
 #endif