diff options
author | Susan LoVerso <sue@mongodb.com> | 2016-02-04 13:36:58 -0500 |
---|---|---|
committer | Susan LoVerso <sue@mongodb.com> | 2016-02-04 13:36:58 -0500 |
commit | 3bc60a9b2eff6f8e1af1cfc704fbf994d1bd471f (patch) | |
tree | a0e989b93fdb78e1e3d07701353d987a1e862e49 /src/cursor/cur_std.c | |
parent | 9f10e410fc8ecd0c9a610eb726c17b2d0e28a097 (diff) | |
download | mongo-3bc60a9b2eff6f8e1af1cfc704fbf994d1bd471f.tar.gz |
WT-2349 Initial addition of readonly configuration option.
Diffstat (limited to 'src/cursor/cur_std.c')
-rw-r--r-- | src/cursor/cur_std.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cursor/cur_std.c b/src/cursor/cur_std.c index 051f36c8854..899df8a07cc 100644 --- a/src/cursor/cur_std.c +++ b/src/cursor/cur_std.c @@ -628,7 +628,7 @@ __wt_cursor_init(WT_CURSOR *cursor, } else { WT_RET( __wt_config_gets_def(session, cfg, "readonly", 0, &cval)); - if (cval.val != 0) { + if (cval.val != 0 || F_ISSET(S2C(session), WT_CONN_READONLY)) { cursor->insert = __wt_cursor_notsup; cursor->update = __wt_cursor_notsup; cursor->remove = __wt_cursor_notsup; |