Report whether string is available, or if a query was dispatched.

This commit is contained in:
Bartosz Taudul 2020-05-23 13:08:57 +02:00
parent 1151ec1328
commit 670a292416
2 changed files with 5 additions and 4 deletions

View File

@ -3559,15 +3559,16 @@ void Worker::InsertLockEvent( LockMap& lockmap, LockEvent* lev, uint64_t thread,
if( range.end < time ) range.end = time; if( range.end < time ) range.end = time;
} }
void Worker::CheckString( uint64_t ptr ) bool Worker::CheckString( uint64_t ptr )
{ {
if( ptr == 0 ) return; if( ptr == 0 ) return true;
if( m_data.strings.find( ptr ) != m_data.strings.end() ) return; if( m_data.strings.find( ptr ) != m_data.strings.end() ) return true;
m_data.strings.emplace( ptr, "???" ); m_data.strings.emplace( ptr, "???" );
m_pendingStrings++; m_pendingStrings++;
Query( ServerQueryString, ptr ); Query( ServerQueryString, ptr );
return false;
} }
void Worker::CheckThreadString( uint64_t id ) void Worker::CheckThreadString( uint64_t id )

View File

@ -680,7 +680,7 @@ private:
void InsertLockEvent( LockMap& lockmap, LockEvent* lev, uint64_t thread, int64_t time ); void InsertLockEvent( LockMap& lockmap, LockEvent* lev, uint64_t thread, int64_t time );
void CheckString( uint64_t ptr ); bool CheckString( uint64_t ptr );
void CheckThreadString( uint64_t id ); void CheckThreadString( uint64_t id );
void CheckExternalName( uint64_t id ); void CheckExternalName( uint64_t id );