HBASE-16971 The passed durability of Append/Increment isn't used in wal sync (ChiaPing Tsai)

This commit is contained in:
tedyu 2016-10-31 09:50:47 -07:00
parent c3bb3b35c5
commit 861880b86b
1 changed files with 1 additions and 1 deletions

View File

@ -7282,7 +7282,7 @@ public class HRegion implements HeapSize, PropagatingConfigurationObserver, Regi
WALEdit walEdit = reckonDeltas(op, mutation, effectiveDurability, forMemStore, results); WALEdit walEdit = reckonDeltas(op, mutation, effectiveDurability, forMemStore, results);
// Actually write to WAL now if a walEdit to apply. // Actually write to WAL now if a walEdit to apply.
if (walEdit != null && !walEdit.isEmpty()) { if (walEdit != null && !walEdit.isEmpty()) {
writeEntry = doWALAppend(walEdit, durability, nonceGroup, nonce); writeEntry = doWALAppend(walEdit, effectiveDurability, nonceGroup, nonce);
} else { } else {
// If walEdits is empty, it means we skipped the WAL; update LongAdders and start an mvcc // If walEdits is empty, it means we skipped the WAL; update LongAdders and start an mvcc
// transaction. // transaction.