]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd: init counter to 0 so errors don't say '-1% done'
authorJosh Durgin <josh.durgin@dreamhost.com>
Wed, 21 Sep 2011 00:23:27 +0000 (17:23 -0700)
committerJosh Durgin <josh.durgin@dreamhost.com>
Tue, 27 Sep 2011 01:10:39 +0000 (18:10 -0700)
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
src/rbd.cc

index a081f56d0ee2227ba96b3c3c7e92e6aa24e6655b..65564bbe32c594a425bf5ec9ba0c0cc12cf37575 100644 (file)
@@ -119,7 +119,7 @@ struct MyProgressContext : public librbd::ProgressContext {
   const char *operation;
   int last_pc;
 
-  MyProgressContext(const char *o) : operation(o), last_pc(-1) {
+  MyProgressContext(const char *o) : operation(o), last_pc(0) {
   }
   
   int update_progress(uint64_t offset, uint64_t total) {