]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
os/FileStore: force temp objects into _TEMP temp collection
authorSage Weil <sage@redhat.com>
Mon, 22 Dec 2014 22:44:49 +0000 (14:44 -0800)
committerSage Weil <sage@redhat.com>
Fri, 19 Jun 2015 00:02:47 +0000 (17:02 -0700)
commite6f196db186cdc04e40ed19b0b22606fa86c99f3
tree031d1f0989d85c9b601d73b464cd2146d5111762
parentf8436f1dc5fe39a9167c86015de279e832c2e67a
os/FileStore: force temp objects into _TEMP temp collection

We've removed the temp collection concept from the ObjectStore interface,
but the FileStore HashIndex will mix objects with different pools together
by hash id, which breaks the ordering.

Compensate by forcing objects with 'temp' pool ids (anything < -1) into
a parallel temp collection.  Hide this detail isnide FileStore, below the
ObjectStore interface and above the HashIndex backend.

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