be/src/common/logging.cc
void PrependFragment(string* s, bool* changed) {
  impala::ThreadDebugInfo* tdi = impala::GetThreadDebugInfo();
  if (tdi != nullptr) {
    for (auto id : { tdi->GetInstanceId(), tdi->GetQueryId() }) {
      if (id == ZERO_UNIQUE_ID) continue;
      s->insert(0, PrintId(id) + "] ");
      if (changed != nullptr) *changed = true;
      return;
    }
  }
}
// Prepends fragment id, when available. If unavailable, looks
// for query id. If unavailable, prepends nothing.
Prepends fragment id, when available. If unavailable, looks
for query id. If unavailable, prepends nothing.
Prepends fragment id when available . If unavailable looks for query id . If unavailable prepends nothing .
void PrependFragment(string* s, bool* changed) {
  impala::ThreadDebugInfo* tdi = impala::GetThreadDebugInfo();
  if (tdi != nullptr) {
    for (auto id : { tdi->GetInstanceId(), tdi->GetQueryId() }) {
      if (id == ZERO_UNIQUE_ID) continue;
      s->insert(0, PrintId(id) + "] ");
      if (changed != nullptr) *changed = true;
      return;
    }
  }
}
void PrependFragment ( string * s , bool * changed ) { impala :: ThreadDebugInfo * tdi = impala :: GetThreadDebugInfo ( ) ; if ( tdi != nullptr ) { for ( auto id : { tdi -> GetInstanceId ( ) , tdi -> GetQueryId ( ) } ) { if ( id == ZERO_UNIQUE_ID ) continue ; s -> insert ( 0 , PrintId ( id ) + " " ) ; if ( changed != nullptr ) * changed = true ; return ; } } }
Prepends fragment id, when available.
Prepends fragment id when available .