diff options
author | Keith Bostic <keith@wiredtiger.com> | 2016-04-04 11:03:02 -0400 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2016-04-04 11:03:02 -0400 |
commit | aa0fe8d687acd6b6250eeb52ba166b93e9d547e6 (patch) | |
tree | 9f15aebdb7e0582ed90b824f8ed05388e81af3ee | |
parent | 1d340e2ce9d3f06adb64fe82cf610cc09e610c5f (diff) | |
download | mongo-aa0fe8d687acd6b6250eeb52ba166b93e9d547e6.tar.gz |
WT-2532: WT_STREAM_APPEND and WT_STREAM_LINE_BUFFER flag overlap.
The WT_STREAM_APPEND and WT_STREAM_LINE_BUFFER flags have the same
value. This means any stream opened for appending will also be
line-buffered, and could possibly cause failure by appearing to set
WT_STREAM_APPEND plus WT_STREAM_READ or WT_STREAM_WRITE, when only
one can legally be specified.
-rw-r--r-- | src/include/os.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/include/os.h b/src/include/os.h index 905f43c305e..2ff41d39f46 100644 --- a/src/include/os.h +++ b/src/include/os.h @@ -75,9 +75,9 @@ #define WT_OPEN_FIXED 0x004 /* Path isn't relative to home */ #define WT_OPEN_READONLY 0x008 /* Readonly open */ #define WT_STREAM_APPEND 0x010 /* Open a stream: append */ -#define WT_STREAM_LINE_BUFFER 0x010 /* Line buffer the stream */ -#define WT_STREAM_READ 0x020 /* Open a stream: read */ -#define WT_STREAM_WRITE 0x040 /* Open a stream: write */ +#define WT_STREAM_LINE_BUFFER 0x020 /* Line buffer the stream */ +#define WT_STREAM_READ 0x040 /* Open a stream: read */ +#define WT_STREAM_WRITE 0x080 /* Open a stream: write */ struct __wt_fh { const char *name; /* File name */ |