Skip to content

Commit

Permalink
fixed bug with storage-type file when dsk was re-run on an existing f…
Browse files Browse the repository at this point in the history
…older

the mphf was deleted
  • Loading branch information
rchikhi committed Dec 10, 2017
1 parent bcb8710 commit 13174d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gatb-core/src/gatb/tools/storage/impl/StorageFile.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ class StorageFileFactory

std::string filename = file_folder + parent->getFullId('.') + std::string(".") + name;
std::string folder = system::impl::System::file().getDirectory(filename);
std::string prefix = system::impl::System::file().getBaseName(filename);
std::string prefix = system::impl::System::file().getBaseName(filename) + std::string(".") + name; // because gatb's getBaseName is stupid and cuts after the last dot

if (nb == 0)
{ // if nb is 0, it means we're opening partitions and not creating them, thus we need to get the number of partitions.
Expand Down

0 comments on commit 13174d2

Please sign in to comment.