diff options
author | Susan LoVerso <sue@mongodb.com> | 2016-02-08 16:39:20 -0500 |
---|---|---|
committer | Susan LoVerso <sue@mongodb.com> | 2016-02-08 16:39:20 -0500 |
commit | 4f43fb358627a5eb69b9aee48af9681e1f0a27f8 (patch) | |
tree | 6f5568c10d047c114c3f5dfc4bd8a7eb1861d8ce /src/btree/bt_handle.c | |
parent | 5c9b3f6de26f254063a378775ba9949f442d1607 (diff) | |
download | mongo-4f43fb358627a5eb69b9aee48af9681e1f0a27f8.tar.gz |
WT-2349 Fixes for readonly and new python test.
Diffstat (limited to 'src/btree/bt_handle.c')
-rw-r--r-- | src/btree/bt_handle.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/btree/bt_handle.c b/src/btree/bt_handle.c index 2db3ca7d984..52152a2fcac 100644 --- a/src/btree/bt_handle.c +++ b/src/btree/bt_handle.c @@ -36,7 +36,8 @@ __wt_btree_open(WT_SESSION_IMPL *session, const char *op_cfg[]) btree = S2BT(session); /* Checkpoint files are readonly. */ - readonly = dhandle->checkpoint != NULL; + readonly = (dhandle->checkpoint != NULL || + F_ISSET(S2C(session), WT_CONN_READONLY)); /* Get the checkpoint information for this name/checkpoint pair. */ WT_CLEAR(ckpt); |