diff options
author | Keith Bostic <keith@wiredtiger.com> | 2015-02-17 11:33:13 -0500 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2015-02-17 11:33:13 -0500 |
commit | f9e6f942cf73c8a53aaadbc587c1b7efad6cc832 (patch) | |
tree | 335373f5b876e2a7f7012cbff7f56102599238b7 | |
parent | 2886bed7d7c63b29ab07f9da121bba4f05229c28 (diff) | |
download | mongo-f9e6f942cf73c8a53aaadbc587c1b7efad6cc832.tar.gz |
Coverity notes the TXN_API_END_RETRY macro has an unnecessary test for
"(ret == 0)" at the end of the do {} while loop.
-rw-r--r-- | src/include/api.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/api.h b/src/include/api.h index e610b3b3e1b..70068e32b9b 100644 --- a/src/include/api.h +++ b/src/include/api.h @@ -76,7 +76,7 @@ } \ } \ break; \ -} while (ret == 0) +} while (1) /* End a transactional API call, retry on deadlock. */ #define TXN_API_END(s, ret) TXN_API_END_RETRY(s, ret, 1) |