]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: factorize shard_id_t/shard_t into a struct
authorLoic Dachary <loic@dachary.org>
Thu, 29 May 2014 21:11:48 +0000 (23:11 +0200)
committerLoic Dachary <loic@dachary.org>
Thu, 29 May 2014 21:11:48 +0000 (23:11 +0200)
commitd723cac03b64ddf1f776a5a57985687f9379ec01
tree3408016767724c6e5bf77f47ab4dda15a76c1349
parent6786d60917ac67cac570e5e7c4a3db6d91a3121f
osd: factorize shard_id_t/shard_t into a struct

The struct contains a single uint8_t and is preferred to control
conversions that would otherwise be implicit. There is no difference
between shard_id_t and shard_t. The definition is moved in
include/types.h so it is available to both hobject.h and osd_types.h

http://tracker.ceph.com/issues/8254 Fixes: #8254

Signed-off-by: Loic Dachary <loic@dachary.org>
src/common/Makefile.am
src/common/hobject.h
src/common/types.cc [new file with mode: 0644]
src/include/types.h
src/osd/osd_types.h
src/test/osd/types.cc