diff options
author | Susan LoVerso <sue@wiredtiger.com> | 2013-11-21 13:27:19 -0500 |
---|---|---|
committer | Susan LoVerso <sue@wiredtiger.com> | 2013-11-21 13:27:19 -0500 |
commit | 3f36100c955dceb6765ad40c60bef9446230252a (patch) | |
tree | bbfdb991671e48c42cb7378e4e823ad49c030068 /src | |
parent | 3c4c5cdde88dbd16e4fc08eef9023d6af5488ea4 (diff) | |
download | mongo-3f36100c955dceb6765ad40c60bef9446230252a.tar.gz |
Lint
Diffstat (limited to 'src')
-rw-r--r-- | src/txn/txn_recover.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/txn/txn_recover.c b/src/txn/txn_recover.c index be16dfcbcb0..f97f0ebc731 100644 --- a/src/txn/txn_recover.c +++ b/src/txn/txn_recover.c @@ -41,15 +41,20 @@ __recovery_cursor(WT_SESSION_IMPL *session, WT_RECOVERY *r, WT_CURSOR *c; const char *cfg[] = { WT_CONFIG_BASE(session, session_open_cursor), "overwrite", NULL }; + int metadata_op; c = NULL; /* + * Metadata operations have an id of 0. Match operations based + * on the id and the current pass of recovery for metadata. + * * Only apply operations in the correct metadata phase, and if the LSN * is more recent than the last checkpoint. If there is no entry for a * file, assume it was dropped. */ - if (r->metadata_only != (id == 0) || + metadata_op = (id == 0); + if (r->metadata_only != metadata_op || LOG_CMP(lsnp, &r->files[id].ckpt_lsn) < 0) ; else if (id > r->max_fileid) |