Skip to content

Commit

Permalink
Fix to allow empty user text in tag log entries
Browse files Browse the repository at this point in the history
  • Loading branch information
ggovi committed Mar 18, 2016
1 parent bd2081e commit 207e311
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions CondCore/CondDB/src/IOVEditor.cc
Expand Up @@ -204,9 +204,12 @@ namespace cond {
m_session->iovSchema().iovTable().insertMany( m_data->tag, m_data->iovBuffer );
std::stringstream msg;
msg << m_data->iovBuffer.size() << " iov(s) inserted.";
if( m_session->iovSchema().tagLogTable().exists() )
if( m_session->iovSchema().tagLogTable().exists() ){
std::string lt = logText;
if( lt.empty() ) lt = "-";
m_session->iovSchema().tagLogTable().insert( m_data->tag, operationTime, cond::getUserName(), cond::getHostName(), cond::getCommand(),
msg.str(),logText );
msg.str(),lt );
}
m_data->iovBuffer.clear();
ret = true;
}
Expand Down

0 comments on commit 207e311

Please sign in to comment.