comparison Core/Cache/MemoryCache.cpp @ 509:e7841864c97c

StableResourcesMonitor
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 16 Aug 2013 14:23:54 +0200
parents bdd72233b105
children 2d0a347e8cfc
comparison
equal deleted inserted replaced
507:c4122c3a47c1 509:e7841864c97c
44 Page* p = NULL; 44 Page* p = NULL;
45 if (index_.Contains(id, p)) 45 if (index_.Contains(id, p))
46 { 46 {
47 VLOG(1) << "Reusing a cache page"; 47 VLOG(1) << "Reusing a cache page";
48 assert(p != NULL); 48 assert(p != NULL);
49 index_.TagAsMostRecent(id); 49 index_.MakeMostRecent(id);
50 return *p; 50 return *p;
51 } 51 }
52 52
53 // The id is not in the cache yet. Make some room if the cache 53 // The id is not in the cache yet. Make some room if the cache
54 // is full. 54 // is full.