diff options
author | David Hows <david.hows@mongodb.com> | 2017-01-23 16:05:51 +1100 |
---|---|---|
committer | David Hows <david.hows@mongodb.com> | 2017-01-23 16:06:16 +1100 |
commit | 48a3cbc17fa902528217287fd075c87efb44aebc (patch) | |
tree | fff4f814ab9fbd7f3eb4c45684f581a5da1c058c /src/schema/schema_util.c | |
parent | 8d2324943364286056ae399043f70b8a937de312 (diff) | |
parent | bf8de9767982da9ae0f1542f3744c8aa8544fb82 (diff) | |
download | mongodb-3.5.2.tar.gz |
Merge branch 'develop' into mongodb-3.6mongodb-3.5.3mongodb-3.5.2
Diffstat (limited to 'src/schema/schema_util.c')
-rw-r--r-- | src/schema/schema_util.c | 6 |
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); } |