]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/PrimaryLogPG: remove duplicated code. 13894/head
authorJianpeng Ma <jianpeng.ma@intel.com>
Thu, 9 Mar 2017 13:57:26 +0000 (21:57 +0800)
committerJianpeng Ma <jianpeng.ma@intel.com>
Thu, 9 Mar 2017 13:57:26 +0000 (21:57 +0800)
commit808897d7bd3dce06328c0a24682b22603f4df6d4
treedc2493674660f5b15ef2e2dde029cce5dda42e76
parent4f78b04c6a3e4f38054527f075ec905f43bd3f51
osd/PrimaryLogPG: remove duplicated code.

In fact, the following code in this function
>> if (op->may_write()) {
>>  ....
>>    // invalid?
>>    if (m->get_snapid() != CEPH_NOSNAP) {
>>      dout(20) << __func__ << ": write to clone not valid " << *m << dendl;
>>      osd->reply_op_error(op, -EINVAL);
>>      return;
>>    }
has the same function. So remove the duplicated code.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
src/osd/PrimaryLogPG.cc