Skip to content

Commit

Permalink
Set fd to -2 in deconstructor
Browse files Browse the repository at this point in the history
yvxiang committed Sep 23, 2016
1 parent a74c683 commit 74c7f87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chunkserver/data_block.cc
Original file line number Diff line number Diff line change
@@ -100,7 +100,7 @@ Block::~Block() {
if (file_desc_ >= 0) {
close(file_desc_);
g_writing_blocks.Dec();
file_desc_ = -1;
file_desc_ = -2;
}
if (recv_window_) {
if (recv_window_->Size()) {

0 comments on commit 74c7f87

Please sign in to comment.