summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@wiredtiger.com>2014-08-01 16:44:52 +1000
committerMichael Cahill <michael.cahill@wiredtiger.com>2014-08-01 16:44:52 +1000
commit905f7cae56c345431d7f8548a6b225ed8c5d2be3 (patch)
treeb2bfb8067424442fb0b77486be3064ba1f3d4167 /examples
parent1bb69589908a2666f5996ae5ff2a593c427a9529 (diff)
downloadmongo-905f7cae56c345431d7f8548a6b225ed8c5d2be3.tar.gz
Visit all log record headers (including commits) at step zero.
Diffstat (limited to 'examples')
-rw-r--r--examples/c/ex_log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/c/ex_log.c b/examples/c/ex_log.c
index 76f5c37c91e..edd96182140 100644
--- a/examples/c/ex_log.c
+++ b/examples/c/ex_log.c
@@ -149,7 +149,7 @@ walk_log(WT_SESSION *session)
* If we are in a transaction and this is a new one, end
* the previous one.
*/
- if (in_txn && (opcount == 0 || opcount == 1)) {
+ if (in_txn && opcount == 0) {
ret = session2->commit_transaction(session2, NULL);
in_txn = 0;
}