Signed-off-by: Sage Weil <sage@redhat.com>
m->has_flag(CEPH_OSD_FLAG_MAP_SNAP_CLONE),
&missing_oid);
+ // LIST_SNAPS needs the ssc too
+ if (obc &&
+ m->get_snapid() == CEPH_SNAPDIR &&
+ !obc->ssc) {
+ obc->ssc = get_snapset_context(oid, true);
+ }
+
if (r == -EAGAIN) {
// If we're not the primary of this OSD, we just return -EAGAIN. Otherwise,
// we have to wait for the object.
<< dendl;
*pobc = obc;
- // always populate ssc for SNAPDIR...
- if (!obc->ssc)
- obc->ssc = get_snapset_context(
- oid, true);
- return 0;
}
// we want a snap