Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New DB tools: fix for support of authenticaton path #3843

Merged
merged 1 commit into from May 14, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 6 additions & 1 deletion CondCore/Utilities/bin/conddb_copy_iov.cpp
Expand Up @@ -44,12 +44,17 @@ int cond::CopyIovUtilities::execute(){
if( hasOptionValue("destSince") ) destSince = getOptionValue<cond::Time_t>( "destSince");

persistency::ConnectionPool connPool;
if( hasOptionValue("authPath") ){
connPool.setAuthenticationPath( getOptionValue<std::string>( "authPath") );
}
connPool.configure();

std::cout <<"# Connecting to source database on "<<connect<<std::endl;
persistency::Session session = connPool.createSession( connect, true, COND_DB );

bool imported = copyIov( session, inputTag, tag, sourceSince, destSince, true );

if( imported ) std::cout <<"# 1 iov imported. "<<std::endl;
if( imported ) std::cout <<"# 1 iov copied. "<<std::endl;

return 0;
}
Expand Down
4 changes: 4 additions & 0 deletions CondCore/Utilities/bin/conddb_import.cpp
Expand Up @@ -52,6 +52,10 @@ int cond::ImportUtilities::execute(){


persistency::ConnectionPool connPool;
if( hasOptionValue("authPath") ){
connPool.setAuthenticationPath( getOptionValue<std::string>( "authPath") );
}
connPool.configure();
std::cout <<"# Connecting to source database on "<<sourceConnect<<std::endl;
persistency::Session sourceSession = connPool.createSession( sourceConnect );

Expand Down