diff options
author | Keith Bostic <keith@wiredtiger.com> | 2012-07-18 08:12:36 +0000 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2012-07-20 09:39:18 +0000 |
commit | 44769c3f3e169875ad8ab05de228ffe379b55749 (patch) | |
tree | 03f7d21398766079a5898c5a78e275cfdc2295e9 /src/meta | |
parent | 2666e485d5037c8175e46f0e09fe14399e9d4c32 (diff) | |
download | mongo-44769c3f3e169875ad8ab05de228ffe379b55749.tar.gz |
Fix up a few minor places where we can simplify "ret = XXX" code, no
real changes.
Diffstat (limited to 'src/meta')
-rw-r--r-- | src/meta/meta_ckpt.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/meta/meta_ckpt.c b/src/meta/meta_ckpt.c index da40ab5742e..d073608e8fd 100644 --- a/src/meta/meta_ckpt.c +++ b/src/meta/meta_ckpt.c @@ -58,18 +58,14 @@ __wt_meta_checkpoint_get(WT_SESSION_IMPL *session, int __wt_meta_checkpoint_clear(WT_SESSION_IMPL *session, const char *name) { - WT_DECL_RET; - - ret = __ckpt_set(session, name, NULL); - /* * If we are unrolling a failed create, we may have already removed the * metadata entry. If no entry is found to update and we're trying to * clear the checkpoint, just ignore it. */ - if (ret == WT_NOTFOUND) - ret = 0; - return (ret); + WT_RET_NOTFOUND_OK(__ckpt_set(session, name, NULL)); + + return (0); } /* |