diff options
author | Keith Bostic <keith@wiredtiger.com> | 2014-10-12 09:54:04 -0400 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2014-10-12 09:54:04 -0400 |
commit | 714ce03c716712f4c5301bc150624dd057785e4a (patch) | |
tree | 8a7770c6cb94f5ac46cce01eaee8b70ae2d91550 /src/include/os.h | |
parent | 4a581f327687ed77ec5dc71c7fe2a83bd1f80a35 (diff) | |
download | mongo-714ce03c716712f4c5301bc150624dd057785e4a.tar.gz |
Revert POSIX OS changes from c5b71e5, reference #1254: that commit
changed ftruncate calls on file handles where the file was also mapped
(that is, a WiredTiger checkpoint was open in the object), to return
EBUSY instead of doing the truncate.
We use ftruncate() to extend files when fallocate/posix_fallocate are
not available or when running on filesystems that don't support them
(for example, ext3). I missed that use of ftruncate in the above commit,
so note the above commit wasn't complete and we could call ftruncate on
files where the file was also mapped into memory.
I'm not willing to lock out file extension if a file is mapped. While
there are known problems in combining file mapping and ftruncate on
historic Linux systems, I don't know of any problems on current systems,
so I'm removing this restriction until we see a failure.
Reference #1267.
Diffstat (limited to 'src/include/os.h')
-rw-r--r-- | src/include/os.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/include/os.h b/src/include/os.h index 489996e9ca7..ceb4c8bb7ca 100644 --- a/src/include/os.h +++ b/src/include/os.h @@ -47,9 +47,6 @@ struct __wt_fh { TAILQ_ENTRY(__wt_fh) q; /* List of open handles */ u_int ref; /* Reference count */ - u_int ref_mapped; /* Mapped reference count */ - - WT_SPINLOCK lock; /* Handle lock */ #ifndef _WIN32 int fd; /* POSIX file handle */ |