Skip to content

Commit 4ed7120

Browse files
tweenkcopybara-github
authored andcommitted
Remove FileSystem::CanCreateTempFile.
This method was added to check if a temporary file should be created in tensor_slice_writer.cc. However, this duplicates the functionality of HasAtomicMove(), which is used for the same purpose in tensor_bundle.cc. PiperOrigin-RevId: 787243159
1 parent 23d144c commit 4ed7120

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

tsl/platform/retrying_file_system.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -152,12 +152,6 @@ class RetryingFileSystem : public FileSystem {
152152
return base_file_system_->HasAtomicMove(path, has_atomic_move);
153153
}
154154

155-
absl::Status CanCreateTempFile(const std::string& fname,
156-
bool* can_create_temp_file) override {
157-
// this method does not need to be retried
158-
return base_file_system_->CanCreateTempFile(fname, can_create_temp_file);
159-
}
160-
161155
absl::Status DeleteRecursively(const string& dirname, TransactionToken* token,
162156
int64_t* undeleted_files,
163157
int64_t* undeleted_dirs) override {

0 commit comments

Comments
 (0)