]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
OSD: map_cache should contain const OSDMap
authorSamuel Just <sam.just@inktank.com>
Mon, 21 May 2012 22:15:15 +0000 (15:15 -0700)
committerSamuel Just <sam.just@inktank.com>
Thu, 5 Jul 2012 17:15:00 +0000 (10:15 -0700)
Signed-off-by: Samuel Just <sam.just@inktank.com>
src/osd/OSD.h

index 6cc66c282f25d1a74c0ed10b750f789e934d44d9..ff45cdd69fe3ccb0b34952303edcafcd45f24d00 100644 (file)
@@ -274,7 +274,7 @@ public:
 
   // osd map cache (past osd maps)
   Mutex map_cache_lock;
-  SharedLRU<epoch_t, OSDMap> map_cache;
+  SharedLRU<epoch_t, const OSDMap> map_cache;
   SimpleLRU<epoch_t, bufferlist> map_bl_cache;
   SimpleLRU<epoch_t, bufferlist> map_bl_inc_cache;