void CSraPath::AddRepPath(const string& rep_path) { if ( rep_path.empty() ) { return; } CFastMutexGuard guard(sx_PathMutex); if ( rc_t rc = SRAPathAddRepPath(*this, rep_path.c_str()) ) { NCBI_THROW3(CSraException, eInitFailed, "Cannot add rep path", rc, rep_path); } }
/* AddRepPath * add a replication path * * "rep" [ IN ] - NUL-terminated server search path * may be a compound path with ':' separator characters, e.g. * "/panfs/traces01:/panfs/traces31" * * NB - servers are searched in the order provided, * first to last, until one of them satisfies a request, * at which time the successful server is placed at the * head of the search path. */ inline rc_t AddRepPath ( const char *rep ) throw() { return SRAPathAddRepPath ( this, rep ); }