~ubuntu-branches/ubuntu/trusty/ceph/trusty-updates

« back to all changes in this revision

Viewing changes to src/rgw/rgw_op.cc

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2014-04-09 11:14:03 UTC
  • mfrom: (1.1.33)
  • Revision ID: package-import@ubuntu.com-20140409111403-jlql95pa8kg1nk9a
Tags: 0.79-0ubuntu1
* New upstream release (LP: #1278466):
  - d/p/modules.patch: Refreshed.
  - d/ceph.install: Install all jerasure modules.

Show diffs side-by-side

added added

removed removed

Lines of Context:
280
280
    RGWMPObj mp(oid, upload_id);
281
281
    oid = mp.get_meta();
282
282
    obj.init_ns(bucket, oid, mp_ns);
 
283
    obj.set_in_extra_data(true);
283
284
  } else {
284
285
    obj.init(bucket, oid);
285
286
  }
1457
1458
 
1458
1459
  rgw_obj meta_obj;
1459
1460
  meta_obj.init_ns(bucket, multipart_meta_obj, mp_ns);
 
1461
  meta_obj.set_in_extra_data(true);
1460
1462
 
1461
1463
  r = store->omap_set(meta_obj, p, bl);
1462
1464
 
2387
2389
 
2388
2390
    obj.init_ns(s->bucket, tmp_obj_name, mp_ns);
2389
2391
    // the meta object will be indexed with 0 size, we c
 
2392
    obj.set_in_extra_data(true);
2390
2393
    ret = store->put_obj_meta(s->obj_ctx, obj, 0, NULL, attrs, RGW_OBJ_CATEGORY_MULTIMETA, PUT_OBJ_CREATE_EXCL, s->owner.get_id());
2391
2394
  } while (ret == -EEXIST);
2392
2395
}
2400
2403
 
2401
2404
  rgw_obj obj;
2402
2405
  obj.init_ns(s->bucket, meta_oid, mp_ns);
 
2406
  obj.set_in_extra_data(true);
2403
2407
 
2404
2408
  int ret = get_obj_attrs(store, s, obj, attrs, NULL, NULL);
2405
2409
  if (ret < 0)
2438
2442
 
2439
2443
  rgw_obj obj;
2440
2444
  obj.init_ns(s->bucket, meta_oid, mp_ns);
 
2445
  obj.set_in_extra_data(true);
2441
2446
 
2442
2447
  bool sorted_omap = is_v2_upload_id(upload_id) && !assume_unsorted;
2443
2448
 
2682
2687
 
2683
2688
  // remove the upload obj
2684
2689
  meta_obj.init_ns(s->bucket, meta_oid, mp_ns);
 
2690
  meta_obj.set_in_extra_data(true);
2685
2691
  store->delete_obj(s->obj_ctx, s->bucket_owner.get_id(), meta_obj);
2686
2692
}
2687
2693
 
2755
2761
 
2756
2762
  // and also remove the metadata obj
2757
2763
  meta_obj.init_ns(s->bucket, meta_oid, mp_ns);
 
2764
  meta_obj.set_in_extra_data(true);
2758
2765
  ret = store->delete_obj(s->obj_ctx, owner, meta_obj);
2759
2766
  if (ret == -ENOENT) {
2760
2767
    ret = -ERR_NO_SUCH_BUCKET;