Skip to content

Commit 2eeb646

Browse files
committed
Emit regop-gen commits unless recovering
Signed-off-by: Mark Hannum <mhannum@bloomberg.net>
1 parent 8dbd931 commit 2eeb646

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

berkdb/txn/txn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1131,7 +1131,7 @@ __txn_commit_int(txnp, flags, ltranid, llid, last_commit_lsn, rlocks, inlks,
11311131
}
11321132

11331133
/* don't let full recovery write a (higher) generation: it will force this newly-recovered node to be master on the next election */
1134-
elect_highest_committed_gen = (dbenv->attr.elect_highest_committed_gen && !gbl_fullrecovery);
1134+
elect_highest_committed_gen = !gbl_fullrecovery;
11351135
db_rep = dbenv->rep_handle;
11361136
rep = db_rep->region;
11371137

0 commit comments

Comments
 (0)