leveldb icon indicating copy to clipboard operation
leveldb copied to clipboard

`PosixRandomAccessFile` close `fd` which is `-1`

Open forrestjgq opened this issue 4 years ago • 0 comments

Hello: I've a question why reading source code:

code: https://github.com/google/leveldb/blob/main/util/env_posix.cc#L186

I wonder why ::close(fd) is required even we are sure fd == -1?

forrestjgq avatar Sep 20 '22 03:09 forrestjgq