Skip to content
This repository has been archived by the owner on Jun 12, 2023. It is now read-only.

Commit

Permalink
Merge pull request #20 from stavrospapadopoulos/dev
Browse files Browse the repository at this point in the history
Fixing minor bug when clearing/deleting an array/metadata
  • Loading branch information
stavrospapadopoulos committed May 12, 2016
2 parents ba6dcdb + 919c54f commit 2cc1832
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/src/storage_manager/storage_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1126,7 +1126,8 @@ int StorageManager::array_clear(
while((next_file = readdir(dir))) {
if(!strcmp(next_file->d_name, ".") ||
!strcmp(next_file->d_name, "..") ||
!strcmp(next_file->d_name, TILEDB_ARRAY_SCHEMA_FILENAME))
!strcmp(next_file->d_name, TILEDB_ARRAY_SCHEMA_FILENAME) ||
!strcmp(next_file->d_name, TILEDB_SM_CONSOLIDATION_FILELOCK_NAME))
continue;
filename = array_real + "/" + next_file->d_name;
if(is_metadata(filename)) { // Metadata
Expand Down Expand Up @@ -1742,7 +1743,8 @@ int StorageManager::metadata_clear(
while((next_file = readdir(dir))) {
if(!strcmp(next_file->d_name, ".") ||
!strcmp(next_file->d_name, "..") ||
!strcmp(next_file->d_name, TILEDB_METADATA_SCHEMA_FILENAME))
!strcmp(next_file->d_name, TILEDB_METADATA_SCHEMA_FILENAME) ||
!strcmp(next_file->d_name, TILEDB_SM_CONSOLIDATION_FILELOCK_NAME))
continue;
filename = metadata_real + "/" + next_file->d_name;
if(is_fragment(filename)) { // Fragment
Expand Down

0 comments on commit 2cc1832

Please sign in to comment.