mirror of
https://github.com/ceph/ceph
synced 2025-01-20 10:01:45 +00:00
Merge remote-tracking branch 'gh/next'
This commit is contained in:
commit
ea9628fba4
@ -13,8 +13,12 @@ ceph mon dump
|
||||
ceph mds dump
|
||||
|
||||
ceph tell osd.0 version
|
||||
ceph tell osd.9999 version && exit 1
|
||||
ceph tell osd.foo version && exit 1
|
||||
! ceph tell osd.9999 version
|
||||
! ceph tell osd.foo version
|
||||
|
||||
ceph osd reweight 0 0.9
|
||||
! ceph osd reweight 0 -1
|
||||
ceph osd reweight 0 1
|
||||
|
||||
for id in `ceph osd ls` ; do
|
||||
ceph tell osd.$id version
|
||||
|
@ -2512,6 +2512,11 @@ bool OSDMonitor::prepare_command(MMonCommand *m)
|
||||
} else {
|
||||
float w = strtof(m->cmd[3].c_str(), 0);
|
||||
long ww = (int)((float)CEPH_OSD_IN*w);
|
||||
if (ww < 0L) {
|
||||
ss << "weight must be > 0";
|
||||
err = -EINVAL;
|
||||
goto out;
|
||||
}
|
||||
if (osdmap.exists(osd)) {
|
||||
pending_inc.new_weight[osd] = ww;
|
||||
ss << "reweighted osd." << osd << " to " << w << " (" << ios::hex << ww << ios::dec << ")";
|
||||
|
@ -1260,6 +1260,9 @@ int RGWRados::copy_obj(void *ctx,
|
||||
attrs[RGW_ATTR_ETAG] = attrset[RGW_ATTR_ETAG];
|
||||
|
||||
attrset = attrs;
|
||||
} else {
|
||||
/* copying attrs from source, however acls should not be copied */
|
||||
attrset[RGW_ATTR_ACL] = attrs[RGW_ATTR_ACL];
|
||||
}
|
||||
|
||||
RGWObjManifest manifest;
|
||||
|
Loading…
Reference in New Issue
Block a user