*
* @param cid collection for object
* @param oid oid of object
- * @param aset place to put output result.
+ * @param aset upon success, will contain exactly the object attrs
* @returns 0 on success, negative error code on failure.
*/
virtual int getattrs(CollectionHandle &c, const ghobject_t& oid,
*
* @param cid collection for object
* @param oid oid of object
- * @param aset place to put output result.
+ * @param aset upon success, will contain exactly the object attrs
* @returns 0 on success, negative error code on failure.
*/
int getattrs(CollectionHandle &c, const ghobject_t& oid,
std::map<std::string,ceph::buffer::list,std::less<>>& aset) {
std::map<std::string,ceph::buffer::ptr,std::less<>> bmap;
int r = getattrs(c, oid, bmap);
+ aset.clear();
for (auto i = bmap.begin(); i != bmap.end(); ++i) {
aset[i->first].append(i->second);
}