diff options
author | Kefu Chai <kchai@redhat.com> | 2020-01-31 06:07:39 +0100 |
---|---|---|
committer | Kefu Chai <kchai@redhat.com> | 2020-02-02 04:37:28 +0100 |
commit | 55953ba0dac86be9d497b433b1cec20fa99d3aca (patch) | |
tree | 08689650bd9b23e23a4cb41e2821da47976bff73 /src/os/Transaction.cc | |
parent | include/buffer: add operator+=() for iterators (diff) | |
download | ceph-55953ba0dac86be9d497b433b1cec20fa99d3aca.tar.xz ceph-55953ba0dac86be9d497b433b1cec20fa99d3aca.zip |
src/: s/advance/operator+=/
for better readablity
Signed-off-by: Kefu Chai <kchai@redhat.com>
Diffstat (limited to 'src/os/Transaction.cc')
-rw-r--r-- | src/os/Transaction.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/os/Transaction.cc b/src/os/Transaction.cc index 0701e14daa5..325f887d94d 100644 --- a/src/os/Transaction.cc +++ b/src/os/Transaction.cc @@ -14,10 +14,10 @@ void decode_str_str_map_to_bl(bufferlist::const_iterator& p, while (n--) { __u32 l; decode(l, p); - p.advance(l); + p += l; len += 4 + l; decode(l, p); - p.advance(l); + p += l; len += 4 + l; } start.copy(len, *out); @@ -33,7 +33,7 @@ void decode_str_set_to_bl(bufferlist::const_iterator& p, while (n--) { __u32 l; decode(l, p); - p.advance(l); + p += l; len += 4 + l; } start.copy(len, *out); |