diff options
author | Dan Mick <dan.mick@inktank.com> | 2012-11-30 17:21:24 -0800 |
---|---|---|
committer | Dan Mick <dan.mick@inktank.com> | 2012-12-05 17:38:05 -0800 |
commit | 64ecc87057a3214eef8528f3b937e1e8e3b1577d (patch) | |
tree | 3e3956dbb67c81f9c231a3511593412ffe084479 | |
parent | 690f8175606edf37a3177c27a3949c78fd37099f (diff) | |
download | ceph-64ecc87057a3214eef8528f3b937e1e8e3b1577d.tar.gz |
Striper: use local variable inside if() that tested it
Signed-off-by: Dan Mick <dan.mick@inktank.com>
(cherry picked from commit 917a6f296323164f9d79df94916932722e66fc0a)
-rw-r--r-- | src/osdc/Striper.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osdc/Striper.cc b/src/osdc/Striper.cc index 26e2b917bb7..7b5a402893f 100644 --- a/src/osdc/Striper.cc +++ b/src/osdc/Striper.cc @@ -284,7 +284,7 @@ void Striper::StripedReadResult::assemble_result(CephContext *cct, bufferlist& b size_t len = p->second.first.length(); if (len < p->second.second) { if (zero_tail || bl.length()) { - bufferptr bp(p->second.second - p->second.first.length()); + bufferptr bp(p->second.second - len); bp.zero(); bl.push_front(bp); bl.claim_prepend(p->second.first); |