intentional fallthough (prevents gcc-7/clang-4 error)

Summary:
db/memtable.cc: In member function 'void rocksdb::MemTable::Update(rocksdb::SequenceNumber, const rocksdb::Slice&, const rocksdb::Slice&)':
db/memtable.cc:736:11: error: this statement may fall through [-Werror=implicit-fallthrough=]
           }
           ^
db/memtable.cc:738:9: note: here
         default:
         ^~~~~~~
cc1plus: all warnings being treated as errors

closes #1650
Closes https://github.com/facebook/rocksdb/pull/1655

Differential Revision: D4318696

Pulled By: yiwu-arbug

fbshipit-source-id: 1a8981c
main
Daniel Black 8 years ago committed by Facebook Github Bot
parent 1a146f89c7
commit 67adc937b6
  1. 1
      db/memtable.cc

@ -735,6 +735,7 @@ void MemTable::Update(SequenceNumber seq,
return; return;
} }
} }
// fallthrough
default: default:
// If the latest value is kTypeDeletion, kTypeMerge or kTypeLogData // If the latest value is kTypeDeletion, kTypeMerge or kTypeLogData
// we don't have enough space for update inplace // we don't have enough space for update inplace

Loading…
Cancel
Save