]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
shared_cache::add: do not delete value if existed
authorSamuel Just <sam.just@inktank.com>
Wed, 22 Oct 2014 19:40:14 +0000 (12:40 -0700)
committerSamuel Just <sam.just@inktank.com>
Wed, 22 Oct 2014 19:40:14 +0000 (12:40 -0700)
commitc116b4b55ab23bef00489db9fbff9fae6ba4bba7
treea54b8e1d7c51ad8c46bc14559cff0cca694d5209
parenta49d7450da35e473a10a8a9f82958731eccec83f
shared_cache::add: do not delete value if existed

The method contract specifies that we do not want to delete
value if we are not inserting it, so do not initialize val
at the top of the function to take over value.  No current
users appear to trip over this problem (FDCache and
map_cache).

Signed-off-by: Samuel Just <sam.just@inktank.com>
src/common/shared_cache.hpp