]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: read patch code cleanup
authorIgor Fedotov <ifedotov@mirantis.com>
Thu, 12 May 2016 13:26:10 +0000 (16:26 +0300)
committerSage Weil <sage@redhat.com>
Wed, 1 Jun 2016 15:38:48 +0000 (11:38 -0400)
Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
src/os/bluestore/BlueStore.cc

index 5c3f9fd1fdbf05074b3efc9d9a22d99cda7388a1..7805babf95028b3f393f5457390a68218d2d8f12 100644 (file)
@@ -2766,8 +2766,6 @@ int BlueStore::_do_read(
   map<uint64_t,bluestore_lextent_t>::iterator ep, eend;
   uint64_t block_size = bdev->get_block_size();
   int r = 0;
-//  IOContext ioc(NULL);   // FIXME?
-//  BnodeRef bnode;
 
   // generally, don't buffer anything, unless the client explicitly requests
   // it.
@@ -2952,7 +2950,6 @@ int BlueStore::_read_extent_sparse(
   //FIXME: this is a trivial implementation that reads each region independently - can be improved to read neighboring and/or close enough regions together.
 
   IOContext ioc(NULL);   // FIXME?
-  //uint64_t block_size = get_read_block_size(blob);
   uint64_t block_size = bdev->get_block_size();
   if (blob->csum_type != bluestore_blob_t::CSUM_NONE)
     block_size = MAX(blob->get_csum_block_size(), block_size);
@@ -3070,8 +3067,6 @@ int BlueStore::_verify_csum(const bluestore_blob_t* blob, uint64_t blob_xoffset,
   start += block0 * csum_len;
   end += (block0 + blocks) * csum_len;
 
-//  std::copy(start, end, csum_data.begin());
-
   checksummer->calculate(
     blob->csum_type,
     blob->get_csum_block_size(),