mirror of
https://github.com/google/leveldb.git
synced 2025-06-07 09:52:42 +08:00
Merge 7c8a302891
into ac691084fd
This commit is contained in:
commit
e56adf07ca
@ -176,7 +176,7 @@ class PosixSequentialFile final : public SequentialFile {
|
||||
class PosixRandomAccessFile final : public RandomAccessFile {
|
||||
public:
|
||||
// The new instance takes ownership of |fd|. |fd_limiter| must outlive this
|
||||
// instance, and will be used to determine if .
|
||||
// instance, and will be used to determine if the file will be opened on every read.
|
||||
PosixRandomAccessFile(std::string filename, int fd, Limiter* fd_limiter)
|
||||
: has_permanent_fd_(fd_limiter->Acquire()),
|
||||
fd_(has_permanent_fd_ ? fd : -1),
|
||||
|
Loading…
Reference in New Issue
Block a user