Skip to content

Commit

Permalink
os/bluestore/BlueStore: for read, length=0 mean length=object.size.
Browse files Browse the repository at this point in the history
Like FileStore, if length=0 mean length=object.size.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
  • Loading branch information
majianpeng committed Mar 8, 2016
1 parent 796331d commit 671dc14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/os/bluestore/BlueStore.cc
Expand Up @@ -2522,7 +2522,7 @@ int BlueStore::read(
goto out;
}

if (offset == length && offset == 0)
if (length == 0)
length = o->onode.size;

r = _do_read(o, offset, length, bl, op_flags);
Expand Down

0 comments on commit 671dc14

Please sign in to comment.