@ -137,8 +137,8 @@ void CompactionIterator::Next() {
if ( merge_out_iter_ . Valid ( ) ) {
if ( merge_out_iter_ . Valid ( ) ) {
key_ = merge_out_iter_ . key ( ) ;
key_ = merge_out_iter_ . key ( ) ;
value_ = merge_out_iter_ . value ( ) ;
value_ = merge_out_iter_ . value ( ) ;
bool valid_key __attribute__ ( ( __unused__ ) ) =
bool valid_key __attribute__ ( ( __unused__ ) ) ;
ParseInternalKey ( key_ , & ikey_ ) ;
valid_key = ParseInternalKey ( key_ , & ikey_ ) ;
// MergeUntil stops when it encounters a corrupt key and does not
// MergeUntil stops when it encounters a corrupt key and does not
// include them in the result, so we expect the keys here to be valid.
// include them in the result, so we expect the keys here to be valid.
assert ( valid_key ) ;
assert ( valid_key ) ;
@ -334,8 +334,8 @@ void CompactionIterator::NextFromInput() {
// If there are no snapshots, then this kv affect visibility at tip.
// If there are no snapshots, then this kv affect visibility at tip.
// Otherwise, search though all existing snapshots to find the earliest
// Otherwise, search though all existing snapshots to find the earliest
// snapshot that is affected by this kv.
// snapshot that is affected by this kv.
SequenceNumber last_sequence __attribute__ ( ( __unused__ ) ) =
SequenceNumber last_sequence __attribute__ ( ( __unused__ ) ) ;
current_user_key_sequence_ ;
last_sequence = current_user_key_sequence_ ;
current_user_key_sequence_ = ikey_ . sequence ;
current_user_key_sequence_ = ikey_ . sequence ;
SequenceNumber last_snapshot = current_user_key_snapshot_ ;
SequenceNumber last_snapshot = current_user_key_snapshot_ ;
SequenceNumber prev_snapshot = 0 ; // 0 means no previous snapshot
SequenceNumber prev_snapshot = 0 ; // 0 means no previous snapshot
@ -538,8 +538,8 @@ void CompactionIterator::NextFromInput() {
// These will be correctly set below.
// These will be correctly set below.
key_ = merge_out_iter_ . key ( ) ;
key_ = merge_out_iter_ . key ( ) ;
value_ = merge_out_iter_ . value ( ) ;
value_ = merge_out_iter_ . value ( ) ;
bool valid_key __attribute__ ( ( __unused__ ) ) =
bool valid_key __attribute__ ( ( __unused__ ) ) ;
ParseInternalKey ( key_ , & ikey_ ) ;
valid_key = ParseInternalKey ( key_ , & ikey_ ) ;
// MergeUntil stops when it encounters a corrupt key and does not
// MergeUntil stops when it encounters a corrupt key and does not
// include them in the result, so we expect the keys here to valid.
// include them in the result, so we expect the keys here to valid.
assert ( valid_key ) ;
assert ( valid_key ) ;