]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
common/RandomCache: Fix inconsistence between contents and count
authorHaomai Wang <haomaiwang@gmail.com>
Wed, 23 Jul 2014 03:26:18 +0000 (11:26 +0800)
committerroot <root@ceph-test.(none)>
Tue, 26 Aug 2014 04:48:28 +0000 (04:48 +0000)
commit98df982a6f830154ff6880f5ee00350ba3375b6b
treeed2be9cb30605768156300b195d88b20b9d49e84
parentc8ec7721526ccf4bfd91a220fee0dd75bef8fb21
common/RandomCache: Fix inconsistence between contents and count

The add/clear method may cause count inconsistent with the real size of
contents.

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
src/common/random_cache.hpp