diff --git a/utilities/write_batch_with_index/write_batch_with_index.cc b/utilities/write_batch_with_index/write_batch_with_index.cc index 67edbb28d..451ed98ac 100644 --- a/utilities/write_batch_with_index/write_batch_with_index.cc +++ b/utilities/write_batch_with_index/write_batch_with_index.cc @@ -235,7 +235,7 @@ class BaseDeltaIterator : public Iterator { // Finished return; } - if (delta_entry.type == kDeleteRecord()) { + if (delta_entry.type == kDeleteRecord) { AdvanceDelta(); } else { current_at_base_ = false; @@ -253,7 +253,7 @@ class BaseDeltaIterator : public Iterator { if (compare == 0) { equal_keys_ = true; } - if (delta_entry.type == kDeleteRecord()) { + if (delta_entry.type == kDeleteRecord) { current_at_base_ = false; return; }