diff options
author | Michael Cahill <michael.cahill@wiredtiger.com> | 2015-03-26 16:00:27 +1100 |
---|---|---|
committer | Michael Cahill <michael.cahill@wiredtiger.com> | 2015-03-26 16:00:27 +1100 |
commit | c2a29b0ef28743556d1475de21978bbb74416d9d (patch) | |
tree | b8e4684858d507f4dba7386aac266891e7bf9615 /src/meta/meta_track.c | |
parent | 40ef31cfe192aed4a8325e35b5494f9491efa766 (diff) | |
download | mongo-c2a29b0ef28743556d1475de21978bbb74416d9d.tar.gz |
meta_track.c:191: warning: declaration of 'sync' shadows a global declaration
Diffstat (limited to 'src/meta/meta_track.c')
-rw-r--r-- | src/meta/meta_track.c | 4 |
1 files changed, 2 insertions, 2 deletions
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. */ |