]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: use per-pool temp poolid for temp objects
authorSage Weil <sage@redhat.com>
Wed, 10 Dec 2014 22:35:11 +0000 (14:35 -0800)
committerSage Weil <sage@redhat.com>
Fri, 19 Jun 2015 00:02:45 +0000 (17:02 -0700)
commit18eb2a5fea9b0af74a171c3717d1c91766b15f0c
tree1617b0b5eebe8181fec655182dd34108a39729ee
parent406c8c3d7930d34f11c2aa839b94014dbbe8b88a
osd: use per-pool temp poolid for temp objects

Previously, all temp objects had poolid == -1.  Instead, use -2 - poolid.
This, when combined with the PG hash, provides a unique temp namespace
per pg.

This has no impact on upgrade, since we delete all temp objects on startup
by collection (coll_t::is_temp()).

Signed-off-by: Sage Weil <sage@redhat.com>
src/common/hobject.h
src/osd/ReplicatedPG.cc
src/osd/osd_types.h