@ -228,7 +228,7 @@ class BlockConstructor: public Constructor {
block_ = nullptr ;
BlockBuilder builder ( table_options . block_restart_interval ) ;
for ( const auto kv : kv_map ) {
for ( const auto & kv : kv_map ) {
builder . Add ( kv . first , kv . second ) ;
}
// Open the block
@ -352,7 +352,7 @@ class TableConstructor: public Constructor {
TablePropertiesCollectorFactory : : Context : : kUnknownColumnFamily ,
file_writer_ . get ( ) ) ) ;
for ( const auto kv : kv_map ) {
for ( const auto & kv : kv_map ) {
if ( convert_to_internal_key_ ) {
ParsedInternalKey ikey ( kv . first , kMaxSequenceNumber , kTypeValue ) ;
std : : string encoded ;
@ -487,7 +487,7 @@ class MemTableConstructor: public Constructor {
kMaxSequenceNumber , 0 /* column_family_id */ ) ;
memtable_ - > Ref ( ) ;
int seq = 1 ;
for ( const auto kv : kv_map ) {
for ( const auto & kv : kv_map ) {
memtable_ - > Add ( seq , kTypeValue , kv . first , kv . second ) ;
seq + + ;
}
@ -548,7 +548,7 @@ class DBConstructor: public Constructor {
delete db_ ;
db_ = nullptr ;
NewDB ( ) ;
for ( const auto kv : kv_map ) {
for ( const auto & kv : kv_map ) {
WriteBatch batch ;
batch . Put ( kv . first , kv . second ) ;
EXPECT_TRUE ( db_ - > Write ( WriteOptions ( ) , & batch ) . ok ( ) ) ;
@ -1226,7 +1226,7 @@ class FileChecksumTestHelper {
}
Status WriteKVAndFlushTable ( ) {
for ( const auto kv : kv_map_ ) {
for ( const auto & kv : kv_map_ ) {
if ( convert_to_internal_key_ ) {
ParsedInternalKey ikey ( kv . first , kMaxSequenceNumber , kTypeValue ) ;
std : : string encoded ;