summaryrefslogtreecommitdiff
path: root/src/schema/schema_util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/schema/schema_util.c')
-rw-r--r--src/schema/schema_util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/schema/schema_util.c b/src/schema/schema_util.c
index 433224a868e..9de4b916a79 100644
--- a/src/schema/schema_util.c
+++ b/src/schema/schema_util.c
@@ -26,7 +26,7 @@ __wt_schema_backup_check(WT_SESSION_IMPL *session, const char *name)
conn = S2C(session);
if (!conn->hot_backup)
return (0);
- __wt_readlock(session, conn->hot_backup_lock);
+ __wt_readlock(session, &conn->hot_backup_lock);
/*
* There is a window at the end of a backup where the list has been
* cleared from the connection but the flag is still set. It is safe
@@ -34,7 +34,7 @@ __wt_schema_backup_check(WT_SESSION_IMPL *session, const char *name)
*/
if (!conn->hot_backup ||
(backup_list = conn->hot_backup_list) == NULL) {
- __wt_readunlock(session, conn->hot_backup_lock);
+ __wt_readunlock(session, &conn->hot_backup_lock);
return (0);
}
for (i = 0; backup_list[i] != NULL; ++i) {
@@ -43,7 +43,7 @@ __wt_schema_backup_check(WT_SESSION_IMPL *session, const char *name)
break;
}
}
- __wt_readunlock(session, conn->hot_backup_lock);
+ __wt_readunlock(session, &conn->hot_backup_lock);
return (ret);
}