summaryrefslogtreecommitdiff
path: root/src/cache/cache_las.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cache/cache_las.c')
-rw-r--r--src/cache/cache_las.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cache/cache_las.c b/src/cache/cache_las.c
index 41f50957809..41da4225f3a 100644
--- a/src/cache/cache_las.c
+++ b/src/cache/cache_las.c
@@ -63,6 +63,7 @@ int
__wt_las_create(WT_SESSION_IMPL *session)
{
WT_CONNECTION_IMPL *conn;
+ WT_DECL_RET;
uint32_t session_flags;
const char *drop_cfg[] = {
WT_CONFIG_BASE(session, WT_SESSION_drop), "force=true", NULL };
@@ -80,7 +81,9 @@ __wt_las_create(WT_SESSION_IMPL *session)
*
* Discard any previous incarnation of the table.
*/
- WT_RET(__wt_session_drop(session, WT_LAS_URI, drop_cfg));
+ WT_WITH_SCHEMA_LOCK(session,
+ ret = __wt_schema_drop(session, WT_LAS_URI, drop_cfg));
+ WT_RET(ret);
/* Re-create the table. */
WT_RET(__wt_session_create(session, WT_LAS_URI, WT_LAS_FORMAT));