At one point, snap_collections were written to a pg collection
attribute. Subsequently, they were moved to the biginfo object
since the structure can grow too large for limited size xattrs.
make_snap_collection, however, was not updated.
Using write_info here should prevent this from happening in
the future.
Signed-off-by: Samuel Just <sam.just@inktank.com>
coll_t c(info.pgid, s);
if (!snap_collections.contains(s)) {
snap_collections.insert(s);
+ write_info(t);
dout(10) << "create_snap_collection " << c << ", set now " << snap_collections << dendl;
- bufferlist bl;
- ::encode(snap_collections, bl);
- t.collection_setattr(coll, "snap_collections", bl);
t.create_collection(c);
}
return c;