summaryrefslogtreecommitdiff
path: root/src/schema/schema_list.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/schema/schema_list.c')
-rw-r--r--src/schema/schema_list.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/schema/schema_list.c b/src/schema/schema_list.c
index ea7374b7554..74ef5135a4a 100644
--- a/src/schema/schema_list.c
+++ b/src/schema/schema_list.c
@@ -25,7 +25,7 @@ __schema_add_table(WT_SESSION_IMPL *session,
/* Make sure the metadata is open before getting other locks. */
WT_RET(__wt_metadata_cursor(session, NULL));
- WT_WITH_TABLE_LOCK(session,
+ WT_WITH_TABLE_READ_LOCK(session,
ret = __wt_schema_open_table(
session, name, namelen, ok_incomplete, &table));
WT_RET(ret);