From: xie xingguo Date: Tue, 19 Apr 2016 06:25:48 +0000 (+0800) Subject: osd/ReplicatedPG: change type of 'inflightreads' from unsigned to int X-Git-Tag: v11.0.0~840^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9e33aa3e422a72a8b91229f2c6059d6d13a8bb52;p=ceph.git osd/ReplicatedPG: change type of 'inflightreads' from unsigned to int The 'inflightreads' works as a reference, so it better be of a type of int which is convenient for underflow tracking. Signed-off-by: xie xingguo --- diff --git a/src/osd/ReplicatedPG.h b/src/osd/ReplicatedPG.h index 47a6a1613d3a..dfb9293c37a2 100644 --- a/src/osd/ReplicatedPG.h +++ b/src/osd/ReplicatedPG.h @@ -608,7 +608,7 @@ public: list, pair > > pending_async_reads; int async_read_result; - unsigned inflightreads; + int inflightreads; friend struct OnReadComplete; void start_async_reads(ReplicatedPG *pg); void finish_read(ReplicatedPG *pg);