* CacheItemPriorityQueue.cs: make sure lastParent is never null if
root is not null in Enqueue. Possible fix for bug #567869
svn path=/trunk/mcs/; revision=149118
if (lastParent == null) {
lastParent = firstParent = firstParent.Left;
lastAdded = null;
+
+ if (lastParent == null) {
+ lastParent = root;
+ firstParent = root;
+ }
}
}
- node.Parent = lastParent;
+ node.Parent = lastParent;
if (lastParent.Left == null)
lastParent.Left = node;
else
if (root.Left == null && root.Right == null) {
ret = root.Data;
- root = null;
+ root = lastAdded = firstParent = lastParent = null;
if (ret.Disabled)
return null;
+2010-01-06 Marek Habersack <mhabersack@novell.com>
+
+ * CacheItemPriorityQueue.cs: make sure lastParent is never null if
+ root is not null in Enqueue. Possible fix for bug #567869
+
2009-12-01 Marek Habersack <mhabersack@novell.com>
* Cache.cs: ExpireItems dequeues the next item when a disabled