summaryrefslogtreecommitdiff
path: root/src/include/error.h
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@wiredtiger.com>2012-06-20 20:43:32 +1000
committerMichael Cahill <michael.cahill@wiredtiger.com>2012-06-20 20:43:32 +1000
commitc3b6b3844d63661e67050485595b6158bb80138a (patch)
treeb9e5fd276733856ca2fd9c342f92bdd7cf082104 /src/include/error.h
parent1cde95e2858baf5a3a9b5c4a7ba94865cbdaf557 (diff)
downloadmongo-c3b6b3844d63661e67050485595b6158bb80138a.tar.gz
Finish the implementation of reconfigure methods: allow flags to be turned off, add support for verbose and cache size.
Diffstat (limited to 'src/include/error.h')
-rw-r--r--src/include/error.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/include/error.h b/src/include/error.h
index c3b02a7da77..dd428d70601 100644
--- a/src/include/error.h
+++ b/src/include/error.h
@@ -57,6 +57,11 @@
__wt_err(session, __ret, __VA_ARGS__); \
return (__ret); \
} while (0)
+#define WT_RET_NOTFOUND_OK(a) do { \
+ int __ret; \
+ if ((__ret = (a)) != 0 && __ret != WT_NOTFOUND) \
+ return (__ret); \
+} while (0)
/* Set "ret" if not already set. */
#define WT_TRET(a) do { \