Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
joergsteffens committed Oct 15, 2018
1 parent b2ff7bf commit 18b6c28
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions src/stored/backends/droplet_device.c
Expand Up @@ -185,16 +185,6 @@ static dpl_status_t chunked_volume_truncate_callback(dpl_dirent_t *dirent, dpl_c
*/
if (*dirent->name >= '0' && *dirent->name <= '9') {

// FIXME: only for testing
/*
if (bstrcmp(dirent->name, "0007")) {
status = DPL_EIO;
Emsg2(M_ERROR, 0, "FAKE: Failed to delete chunk file %s using dpl_unlink(): ERR=%s.\n",
dirent->fqn.path, dpl_status_str(status));
return status;
}
*/

status = dpl_unlink(ctx, dirent->name);

switch (status) {
Expand Down Expand Up @@ -325,15 +315,15 @@ static dpl_status_t chunked_volume_truncate_callback(dpl_sysmd_t *sysmd, dpl_ctx
{
dpl_status_t status = DPL_SUCCESS;

status = dpl_unlink(ctx, chunkpath);
status = dpl_unlink(ctx, chunkpath);

switch (status) {
switch (status) {
case DPL_SUCCESS:
break;
default:
/* no error message here, as error will be set by calling function. */
return status;
}
}

return status;
}
Expand Down

0 comments on commit 18b6c28

Please sign in to comment.