summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/include/extern.h2
-rw-r--r--src/meta/meta_track.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/include/extern.h b/src/include/extern.h
index 676264b49eb..86c8f501eb2 100644
--- a/src/include/extern.h
+++ b/src/include/extern.h
@@ -425,7 +425,7 @@ extern int __wt_metadata_remove(WT_SESSION_IMPL *session, const char *key);
extern int __wt_metadata_search( WT_SESSION_IMPL *session, const char *key, char **valuep);
extern void __wt_meta_track_discard(WT_SESSION_IMPL *session);
extern int __wt_meta_track_on(WT_SESSION_IMPL *session);
-extern int __wt_meta_track_off(WT_SESSION_IMPL *session, int sync, int unroll);
+extern int __wt_meta_track_off(WT_SESSION_IMPL *session, int need_sync, int unroll);
extern int __wt_meta_track_sub_on(WT_SESSION_IMPL *session);
extern int __wt_meta_track_sub_off(WT_SESSION_IMPL *session);
extern int __wt_meta_track_checkpoint(WT_SESSION_IMPL *session);
diff --git a/src/meta/meta_track.c b/src/meta/meta_track.c
index 42955e734e1..3bc6a1f9d60 100644
--- a/src/meta/meta_track.c
+++ b/src/meta/meta_track.c
@@ -188,7 +188,7 @@ free: trk->op = WT_ST_EMPTY;
* Turn off metadata operation tracking, unrolling on error.
*/
int
-__wt_meta_track_off(WT_SESSION_IMPL *session, int sync, int unroll)
+__wt_meta_track_off(WT_SESSION_IMPL *session, int need_sync, int unroll)
{
WT_DECL_RET;
WT_META_TRACK *trk, *trk_orig;
@@ -223,7 +223,7 @@ __wt_meta_track_off(WT_SESSION_IMPL *session, int sync, int unroll)
* Also, if we don't have the metadata handle (e.g, we're in the
* process of creating the metadata), we can't sync it.
*/
- if (unroll || ret != 0 || !sync || session->meta_dhandle == NULL)
+ if (unroll || ret != 0 || !need_sync || session->meta_dhandle == NULL)
return (ret);
/* If we're logging, make sure the metadata update was flushed. */