DMS are now locked when used by a command. Added checks and changed
cleaning mechanisms.
This commit is contained in:
@ -274,7 +274,7 @@ int obi_ecotag(const char* dms_name,
|
||||
best_match_ids_buffer_size = 1024;
|
||||
|
||||
// Open main DMS containing the query sequences and where the output will be written
|
||||
dms = obi_open_dms(dms_name);
|
||||
dms = obi_open_dms(dms_name, false);
|
||||
if (dms == NULL)
|
||||
{
|
||||
obidebug(1, "\nError opening the DMS containing the query sequences for ecotag");
|
||||
@ -282,7 +282,7 @@ int obi_ecotag(const char* dms_name,
|
||||
}
|
||||
|
||||
// Open the DMS containing the reference database (can be the same or not)
|
||||
ref_dms = obi_open_dms(ref_dms_name);
|
||||
ref_dms = obi_open_dms(ref_dms_name, false);
|
||||
if (ref_dms == NULL)
|
||||
{
|
||||
obidebug(1, "\nError opening the DMS containing the reference database for ecotag");
|
||||
@ -290,7 +290,7 @@ int obi_ecotag(const char* dms_name,
|
||||
}
|
||||
|
||||
// Open the DMS containing the taxonomy (can be the same or not)
|
||||
taxo_dms = obi_open_dms(taxo_dms_name);
|
||||
taxo_dms = obi_open_dms(taxo_dms_name, false);
|
||||
if (taxo_dms == NULL)
|
||||
{
|
||||
obidebug(1, "\nError opening the DMS containing the taxonomy for ecotag");
|
||||
|
Reference in New Issue
Block a user