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>
if (can_create)
ssc = get_snapset_context(soid.oid, soid.get_key(), soid.hash, true);
obc = new ObjectContext(oi, true, ssc);
- obc->obs.oi.decode(bv);
obc->obs.exists = true;
register_object_context(obc);