summaryrefslogtreecommitdiff
path: root/src/include/txn.i
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/txn.i')
-rw-r--r--src/include/txn.i2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/txn.i b/src/include/txn.i
index 46f2ff3e5f1..40e2a6175d6 100644
--- a/src/include/txn.i
+++ b/src/include/txn.i
@@ -266,6 +266,8 @@ __wt_txn_begin(WT_SESSION_IMPL *session, const char *cfg[])
}
F_SET(txn, WT_TXN_RUNNING);
+ if (F_ISSET(S2C(session), WT_CONN_READONLY))
+ F_SET(txn, WT_TXN_READONLY);
return (false);
}