]> git.hungrycats.org Git - bees/commitdiff
context: when a task fails to acquire an extent lock, don't go ahead and scan the...
authorZygo Blaxell <bees@furryterror.org>
Tue, 19 Nov 2024 20:17:41 +0000 (15:17 -0500)
committerZygo Blaxell <bees@furryterror.org>
Sun, 1 Dec 2024 04:30:33 +0000 (23:30 -0500)
Commit c3b664fea54cfd8ac25411cbdb9536e4f24b008e ("context: don't forget
to retry locked extents") removed the critical return that prevents a
Task from processing an extent that is locked.

Put the return back.

Fixes: c3b664fea54cfd8ac25411cbdb9536e4f24b008e ("context: don't forget to retry locked extents")
Signed-off-by: Zygo Blaxell <bees@furryterror.org>
src/bees-context.cc

index 25d9084a5d3c9373881876935a5f61a4fa19e1f0..a269f05d9f469643983314b04522908feb487860 100644 (file)
@@ -721,6 +721,7 @@ BeesContext::scan_forward(const BeesFileRange &bfr_in)
                                        // BEESLOGDEBUG("Deferring extent bytenr " << to_hex(extent_bytenr) << " from " << bfr);
                                        BEESCOUNT(scanf_deferred_extent);
                                        start_over = true;
+                                       return; // from closure
                                }
                                Timer one_extent_timer;
                                scan_one_extent(bfr, e);