summaryrefslogtreecommitdiff
path: root/src/async
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2014-06-27 09:04:10 -0400
committerKeith Bostic <keith@wiredtiger.com>2014-06-27 09:04:10 -0400
commitc09aa41d6f10d88991862d88a90fc7aab17abad1 (patch)
tree16363eec949da4b0080465d37c17cdfcc84794cc /src/async
parente78ebbcba5eecaef9cdc218933357a080d8542cd (diff)
downloadmongo-c09aa41d6f10d88991862d88a90fc7aab17abad1.tar.gz
I can never remember which version of API_END has the return call and
which doesn't; create API_END_RET and API_END_RET_NOTFOUND_MAP, leave API_END for functions without any return value.
Diffstat (limited to 'src/async')
-rw-r--r--src/async/async_op.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/src/async/async_op.c b/src/async/async_op.c
index 5aaf0ad4b2b..1e9151e0f86 100644
--- a/src/async/async_op.c
+++ b/src/async/async_op.c
@@ -109,8 +109,7 @@ __async_search(WT_ASYNC_OP *asyncop)
ASYNCOP_API_CALL(O2C(op), session, search);
WT_STAT_FAST_CONN_INCR(O2S(op), async_op_search);
WT_ERR(__async_op_wrap(op, WT_AOP_SEARCH));
-err: API_END(session, ret);
- return (ret);
+err: API_END_RET(session, ret);
}
/*
@@ -128,8 +127,7 @@ __async_insert(WT_ASYNC_OP *asyncop)
ASYNCOP_API_CALL(O2C(op), session, insert);
WT_STAT_FAST_CONN_INCR(O2S(op), async_op_insert);
WT_ERR(__async_op_wrap(op, WT_AOP_INSERT));
-err: API_END(session, ret);
- return (ret);
+err: API_END_RET(session, ret);
}
/*
@@ -147,8 +145,7 @@ __async_update(WT_ASYNC_OP *asyncop)
ASYNCOP_API_CALL(O2C(op), session, update);
WT_STAT_FAST_CONN_INCR(O2S(op), async_op_update);
WT_ERR(__async_op_wrap(op, WT_AOP_UPDATE));
-err: API_END(session, ret);
- return (ret);
+err: API_END_RET(session, ret);
}
/*
@@ -166,8 +163,7 @@ __async_remove(WT_ASYNC_OP *asyncop)
ASYNCOP_API_CALL(O2C(op), session, remove);
WT_STAT_FAST_CONN_INCR(O2S(op), async_op_remove);
WT_ERR(__async_op_wrap(op, WT_AOP_REMOVE));
-err: API_END(session, ret);
- return (ret);
+err: API_END_RET(session, ret);
}
/*
@@ -185,8 +181,7 @@ __async_compact(WT_ASYNC_OP *asyncop)
ASYNCOP_API_CALL(O2C(op), session, compact);
WT_STAT_FAST_CONN_INCR(O2S(op), async_op_compact);
WT_ERR(__async_op_wrap(op, WT_AOP_COMPACT));
-err: API_END(session, ret);
- return (ret);
+err: API_END_RET(session, ret);
}
/*