]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
unit tests for pg_missing_t 327/head
authorLoic Dachary <loic@dachary.org>
Tue, 28 May 2013 21:34:59 +0000 (23:34 +0200)
committerLoic Dachary <loic@dachary.org>
Fri, 31 May 2013 17:58:52 +0000 (19:58 +0200)
commitddb3a8d6ae6174d57a58c59a73724975914ffd4b
tree488cbf9f1983fb7b68dcfa61debc85986f2d0d29
parentdb85c52d4cff8f541e2cdd30e7a28cadf4bf516f
unit tests for pg_missing_t

All lines of code are tested. The conditions under which some methods
could corrupt the content of a pg_missing_t object have not been
investigated. Since the data members are public, the caller is
ultimately responsible for the consistency of the object and the
methods have no way to enforce it.

The semantics of is_missing have been discussed in
http://thread.gmane.org/gmane.comp.file-systems.ceph.devel/15280

Signed-off-by: Loic Dachary <loic@dachary.org>
src/test/test_osd_types.cc