Skip to content

Commit

Permalink
drop #if 0 code block in gfid_create
Browse files Browse the repository at this point in the history
TEST_CHECKPATCH_SKIP_FILES="common/src/unifyfs_configurator.h"
  • Loading branch information
adammoody committed Mar 27, 2023
1 parent eb3b930 commit 4ae473d
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions client/src/unifyfs_fid.c
Original file line number Diff line number Diff line change
Expand Up @@ -428,18 +428,6 @@ int unifyfs_gfid_create(
return ret;
}

#if 0
/* TODO: If we allow truncate on create, and if file is already
* laminated, return an error. It will be easier to check this
* status on the server. */
if (truncate) {
ret = invoke_client_truncate_rpc(client, gfid, 0);
if (ret != UNIFYFS_SUCCESS) {
LOGERR("Failed to truncate file %s", path);
}
}
#endif

return ret;
}

Expand Down

0 comments on commit 4ae473d

Please sign in to comment.