Blame SOURCES/memcached-lrutest.patch

dc8233
commit 2a381829b2418018506a3dde4bf125a1348726f2
dc8233
Author: dormando <dormando@rydia.net>
dc8233
Date:   Fri Aug 10 15:31:22 2018 -0700
dc8233
dc8233
    t/lru-maintainer.t: check for WARM item earlier
dc8233
    
dc8233
    item might get pushed back out as we keep doing work. also use the move
dc8233
    counter instead of static number, in case of timing goofups pushing the warm
dc8233
    item back out.
dc8233
dc8233
diff --git a/t/lru-maintainer.t b/t/lru-maintainer.t
dc8233
index 04fa76a..93091af 100644
dc8233
--- a/t/lru-maintainer.t
dc8233
+++ b/t/lru-maintainer.t
dc8233
@@ -68,6 +68,8 @@ for (my $key = 0; $key < 100; $key++) {
dc8233
             }
dc8233
             last;
dc8233
         }
dc8233
+        $stats = mem_stats($sock, "items");
dc8233
+        isnt($stats->{"items:31:moves_to_warm"}, 0, "our canary moved to warm");
dc8233
     }
dc8233
     print $sock "set key$key 0 0 66560\r\n$value\r\n";
dc8233
     is(scalar <$sock>, "STORED\r\n", "stored key$key");
dc8233
@@ -76,8 +78,6 @@ for (my $key = 0; $key < 100; $key++) {
dc8233
 {
dc8233
     my $stats = mem_stats($sock);
dc8233
     isnt($stats->{evictions}, 0, "some evictions happened");
dc8233
-    my $istats = mem_stats($sock, "items");
dc8233
-    isnt($istats->{"items:31:number_warm"}, 0, "our canary moved to warm");
dc8233
     use Data::Dumper qw/Dumper/;
dc8233
 }
dc8233