Skip to content

Commit

Permalink
fix: fix bug in local_service (#455)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhao liwei authored May 8, 2020
1 parent 294e0c9 commit 5c3e19f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dist/block_service/local/local_service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ dsn::task_ptr local_file_object::read(const read_request &req,

dinfo("read file(%s), size = %ld", file_name().c_str(), total_sz);
std::string buf;
buf.reserve(total_sz + 1);
buf.resize(total_sz + 1);
std::ifstream fin(file_name(), std::ifstream::in);
if (!fin.is_open()) {
resp.err = ERR_FS_INTERNAL;
Expand Down

0 comments on commit 5c3e19f

Please sign in to comment.