Update fdbclient/ReadYourWrites.actor.cpp

Co-Authored-By: A.J. Beamon <ajbeamon@users.noreply.github.com>
This commit is contained in:
Jingyu Zhou 2019-07-16 10:33:25 -07:00 committed by GitHub
parent 94563464cb
commit d5cc2beb5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1385,7 +1385,7 @@ void ReadYourWritesTransaction::updateConflictMap( KeyRef const& key, WriteMap::
//it.skip( key );
//ASSERT( it.beginKey() <= key && key < it.endKey() );
if( it.is_unmodified_range() || ( it.is_operation() && !it.is_independent() ) ) {
approximateSize += key.expectedSize() + sizeof(KeyRangeRef);
approximateSize += 2 * key.expectedSize() + 1 + sizeof(KeyRangeRef);
readConflicts.insert( singleKeyRange( key, arena ), true );
}
}