summaryrefslogtreecommitdiff
path: root/src/btree/bt_handle.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/btree/bt_handle.c')
-rw-r--r--src/btree/bt_handle.c3
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);