]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
set object_info_t pool of an ObjectContext if it is undefined or bad 388/head
authorLoic Dachary <loic@dachary.org>
Tue, 2 Jul 2013 08:19:58 +0000 (10:19 +0200)
committerLoic Dachary <loic@dachary.org>
Tue, 2 Jul 2013 17:40:32 +0000 (19:40 +0200)
commita4cd631776d924e33067d6d38cae91cdc79b68ee
treef372a84ae5c55b39a32ba5e56d009638f743488d
parent94742d4c69281dd0a1f4d007d845d3caed9ceca0
set object_info_t pool of an ObjectContext if it is undefined or bad

When reading object_info_t from an existing object attribute, the pool
may be < 0 and should be set to the pool containing the object. This is done
on the oi object on the stack but overriden later by:

    obc->obs.oi.decode(bv);

This decode is superfluous and is removed so that it does not override
the modified value of the pool.

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