]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd: remove alway-true else condition in import-diff
authorJosh Durgin <josh.durgin@inktank.com>
Sat, 30 Mar 2013 00:06:08 +0000 (17:06 -0700)
committerJosh Durgin <josh.durgin@inktank.com>
Mon, 1 Apr 2013 15:56:06 +0000 (08:56 -0700)
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
src/rbd.cc

index 5099e27b16e774d84455a543000d1756eba3b83a..f6cdb5839051725290bb4470aa342c6fd22fc6b7 100644 (file)
@@ -1479,7 +1479,7 @@ static int do_import_diff(librbd::Image &image, const char *path)
        data.append(bp);
        dout(2) << " write " << off << "~" << len << dendl;
        image.write(off, len, data);
-      } else if (tag == 'z') {
+      } else {
        dout(2) << " zero " << off << "~" << len << dendl;
        image.discard(off, len);
       }