code: mafs

Download patch

ref: db24bb2913d859d67a2a428480488dff4de9d3ae
parent: 6ce1ea2f5013314612d9e720f5d1f6cf807f4ba8
author: 9ferno <gophone2015@gmail.com>
date: Tue Oct 25 11:44:18 EDT 2022

updated comment

--- a/iobuf.c
+++ b/iobuf.c
@@ -104,8 +104,12 @@
 	}
 
 	/* maxed out our allowed number of collisions,
-		try to steal an older Iobuf without any ref's.
+		try to steal an older Iobuf without any ref's and not in the write queue.
 		Ncollisions is a soft limit.
+		We are not moving the stolen buffer to the top of the circular linked list,
+		but, setting this stolen buffer as the lru. I figure it should not matter
+		much either way. If it does, there is a changelru() function to do so in the
+		git history that can be reused.
 	 */
 	if(ncollisions >= Ncollisions){
 Another: