afs: the assert seems to be inverted when using memcache
[openafs.git] / src / afs / afs_dcache.c
index 846033b..c2a5b04 100644 (file)
@@ -2626,7 +2626,7 @@ afs_MemGetDSlot(afs_int32 aslot, int needvalid)
        return tdc;
     }
 
-    osi_Assert(!needvalid);
+    osi_Assert(needvalid);
 
     if (!afs_freeDSList)
        afs_GetDownDSlot(4);