Skip to content

Commit

Permalink
Revert error macros
Browse files Browse the repository at this point in the history
  • Loading branch information
nalinigans committed Nov 21, 2024
1 parent 56668a9 commit 22d8b6c
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions core/src/fragment/book_keeping.cc
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,6 @@ int BookKeeping::init(const void* non_empty_domain) {
* tile_var_sizes_attr#<attribute_num-1>_#2 (size_t) ...
* last_tile_cell_num(int64_t)
*/
#define RETURN_BK_ERROR do { delete buffer_; buffer_ = 0; return TILEDB_BK_ERR; } while(false)
int BookKeeping::load(StorageFS *fs) {
if (is_env_set("TILEDB_BOOKKEEPING_STATS")) {
print_memory_stats("Before BookKeeping::load");
Expand All @@ -388,31 +387,31 @@ int BookKeeping::load(StorageFS *fs) {

// Load non-empty domain
if(load_non_empty_domain() != TILEDB_BK_OK)
RETURN_BK_ERROR;
return TILEDB_BK_ERR;

// Load MBRs
if(load_mbrs() != TILEDB_BK_OK)
RETURN_BK_ERROR;
return TILEDB_BK_ERR;

// Load bounding coordinates
if(load_bounding_coords() != TILEDB_BK_OK)
RETURN_BK_ERROR;
return TILEDB_BK_ERR;

// Load tile offsets
if(load_tile_offsets() != TILEDB_BK_OK)
RETURN_BK_ERROR;
return TILEDB_BK_ERR;

// Load variable tile offsets
if(load_tile_var_offsets() != TILEDB_BK_OK)
RETURN_BK_ERROR;
return TILEDB_BK_ERR;

// Load variable tile sizes
if(load_tile_var_sizes() != TILEDB_BK_OK)
RETURN_BK_ERROR;
return TILEDB_BK_ERR;

// Load cell number of last tile
if(load_last_tile_cell_num() != TILEDB_BK_OK)
RETURN_BK_ERROR;
return TILEDB_BK_ERR;

// Free up StorageBuffer
buffer_->finalize();
Expand Down

0 comments on commit 22d8b6c

Please sign in to comment.