diff options
author | Keith Bostic <keith.bostic@mongodb.com> | 2016-04-28 18:49:21 -0400 |
---|---|---|
committer | Alex Gorrod <alexander.gorrod@mongodb.com> | 2016-04-29 08:49:21 +1000 |
commit | 2c7411c77d3a95353c11b18777990ea9b9a68547 (patch) | |
tree | f61f7745d5eb31eff98c0b4c5be145b118071ad3 /src/include/os_fhandle.i | |
parent | dbaaa69606853f3555db68721a17d66ff68558ec (diff) | |
download | mongo-2c7411c77d3a95353c11b18777990ea9b9a68547.tar.gz |
WT-2552 Minor cleanup of new pluggable file system API
* WT-2552 Add public API for pluggable filesystems
When swapping handling functions in the POSIX WT_FILE_HANDLE.fallocate
function, add a write-barrier so we never see an inconsistent set of
functions. It probably wouldn't matter, but let's not find out.
* WT-2552 Add public API for pluggable filesystems
Fix a couple of places in the in-memory code where we were redirecting
through the iface structure unnecessarily.
* WT-2552 Add public API for pluggable filesystems
Consistently do diagnostic asserts on read-only in the WiredTiger stub
functions, not in the underlying file-system/file-handle layer.
Diffstat (limited to 'src/include/os_fhandle.i')
-rw-r--r-- | src/include/os_fhandle.i | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/os_fhandle.i b/src/include/os_fhandle.i index a093d80d388..8d2cda4b305 100644 --- a/src/include/os_fhandle.i +++ b/src/include/os_fhandle.i @@ -15,6 +15,8 @@ __wt_fsync(WT_SESSION_IMPL *session, WT_FH *fh, bool block) { WT_FILE_HANDLE *handle; + WT_ASSERT(session, !F_ISSET(S2C(session), WT_CONN_READONLY)); + WT_RET(__wt_verbose( session, WT_VERB_HANDLEOPS, "%s: handle-sync", fh->handle->name)); |