Skip to content

Commit

Permalink
Fix file-close bug on Linux
Browse files Browse the repository at this point in the history
Used to set a bool to "-1", instead of "false". Caused checkpoints to fail
with EBADF.
  • Loading branch information
jahunter-m committed Aug 15, 2018
1 parent 3eb4f84 commit 6d19804
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cc/src/environment/file_linux.h
Expand Up @@ -81,7 +81,7 @@ class File {
read_count_ = other.read_count_;
bytes_read_ = other.bytes_read_;
#endif
other.owner_ = -1;
other.owner_ = false;
return *this;
}

Expand Down

0 comments on commit 6d19804

Please sign in to comment.