diff options
author | Keith Bostic <keith.bostic@mongodb.com> | 2016-12-11 22:01:19 -0500 |
---|---|---|
committer | Alex Gorrod <alexander.gorrod@mongodb.com> | 2016-12-12 14:01:19 +1100 |
commit | 493bbf750c86319757fc61d30c478f43fe2fdc48 (patch) | |
tree | 158c1f5b4b89c65502dae9451960826815811692 /src/txn | |
parent | 1b812c0aa2fbab91e289642b0a8d02d65c879438 (diff) | |
download | mongo-493bbf750c86319757fc61d30c478f43fe2fdc48.tar.gz |
WT-3066 lint (#3189)
Diffstat (limited to 'src/txn')
-rw-r--r-- | src/txn/txn_nsnap.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/txn/txn_nsnap.c b/src/txn/txn_nsnap.c index b12da9fbaea..65ec1a6662f 100644 --- a/src/txn/txn_nsnap.c +++ b/src/txn/txn_nsnap.c @@ -28,7 +28,6 @@ __nsnap_destroy(WT_SESSION_IMPL *session, WT_NAMED_SNAPSHOT *nsnap) static int __nsnap_drop_one(WT_SESSION_IMPL *session, WT_CONFIG_ITEM *name) { - WT_DECL_RET; WT_NAMED_SNAPSHOT *found; WT_TXN_GLOBAL *txn_global; @@ -56,7 +55,7 @@ __nsnap_drop_one(WT_SESSION_IMPL *session, WT_CONFIG_ITEM *name) __nsnap_destroy(session, found); WT_STAT_CONN_INCR(session, txn_snapshots_dropped); - return (ret); + return (0); } /* @@ -67,7 +66,6 @@ __nsnap_drop_one(WT_SESSION_IMPL *session, WT_CONFIG_ITEM *name) static int __nsnap_drop_to(WT_SESSION_IMPL *session, WT_CONFIG_ITEM *name, bool inclusive) { - WT_DECL_RET; WT_NAMED_SNAPSHOT *last, *nsnap, *prev; WT_TXN_GLOBAL *txn_global; uint64_t new_nsnap_oldest; @@ -134,7 +132,7 @@ __nsnap_drop_to(WT_SESSION_IMPL *session, WT_CONFIG_ITEM *name, bool inclusive) new_nsnap_oldest == WT_TXN_NONE || !__wt_txn_visible_all(session, new_nsnap_oldest)); - return (ret); + return (0); } /* |