]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commitdiff
Rephrasing the comment
authorIgor Canadi <icanadi@fb.com>
Mon, 21 Oct 2013 17:23:56 +0000 (10:23 -0700)
committerIgor Canadi <icanadi@fb.com>
Mon, 21 Oct 2013 17:23:56 +0000 (10:23 -0700)
Summary: Per @haobo's request, rephrasing the comment for allocate

Test Plan: It's a comment!

Reviewers: haobo, kailiu

Reviewed By: kailiu

CC: leveldb
Differential Revision: https://reviews.facebook.net/D13575

util/blob_store.cc

index 168a6d74a777e4c63c74092bc2b9d15a72dd13e9..d082c41899abf1042a0ec87892d2c99fba929d19 100644 (file)
@@ -287,7 +287,9 @@ Status BlobStore::CreateNewBucket() {
     return s;
   }
 
-  // tmpfs does not support allocate
+  // whether Allocate succeeds or not, does not affect the overall correctness
+  // of this function - calling Allocate is really optional
+  // (also, tmpfs does not support allocate)
   buckets_[new_bucket_id].get()->Allocate(0, block_size_ * blocks_per_bucket_);
 
   return free_list_.Free(Blob(new_bucket_id, 0, blocks_per_bucket_));