diff options
author | Sage Weil <sage@inktank.com> | 2013-06-16 08:50:50 -0700 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-06-16 08:50:50 -0700 |
commit | 80c2d5a8db0900e727275810ac8d160ababb82ae (patch) | |
tree | 92fdd2ac6d7bc706c77045a2074c18802b4b1a4f | |
parent | 9ef6041fe7f001f0714aa99846783beb47bc756b (diff) | |
download | ceph-80c2d5a8db0900e727275810ac8d160ababb82ae.tar.gz |
osd/ReplicatedPG: length 0 writes are allowed
From f1b6bd7988ab964c9167eff7bea51a49573f5175.
Signed-off-by: Sage Weil <sage@inktank.com>
-rw-r--r-- | src/osd/ReplicatedPG.cc | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index ab8cfaee6d2..af59803c660 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -1955,9 +1955,6 @@ int ReplicatedPG::do_tmapup(OpContext *ctx, bufferlist::iterator& bp, OSDOp& osd static int check_offset_and_length(uint64_t offset, uint64_t length) { - if (length < 1) - return -EINVAL; - if (offset >= g_conf->osd_max_object_size || length > g_conf->osd_max_object_size || offset + length > g_conf->osd_max_object_size) |