Commit 32221c4574609db2680100acaa0ee75e29400497

Con Kolivas 2011-07-15T09:39:29

We shouldn't be deleting lp_staged value on dec_staged. It prevents detecting get_work failures.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/main.c b/main.c
index b3ad994..77668b1 100644
--- a/main.c
+++ b/main.c
@@ -940,8 +940,6 @@ static void inc_staged(int inc, bool lp)
 static void dec_staged(int inc)
 {
 	pthread_mutex_lock(&stgd_lock);
-	if (lp_staged)
-		lp_staged -= inc;
 	total_staged -= inc;
 	pthread_mutex_unlock(&stgd_lock);
 }