]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/ReplicatedPG: change type of 'inflightreads' from unsigned to int
authorxie xingguo <xie.xingguo@zte.com.cn>
Tue, 19 Apr 2016 06:25:48 +0000 (14:25 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Tue, 19 Apr 2016 06:25:48 +0000 (14:25 +0800)
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 <xie.xingguo@zte.com.cn>
src/osd/ReplicatedPG.h

index 47a6a1613d3a66126770aac545e1bb514a47ac63..dfb9293c37a2600f3de5801e2ef3ddecdfa6afd3 100644 (file)
@@ -608,7 +608,7 @@ public:
     list<pair<boost::tuple<uint64_t, uint64_t, unsigned>,
              pair<bufferlist*, Context*> > > 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);