aboutsummaryrefslogtreecommitdiff
path: root/tensorflow/core/platform/retrying_file_system.h
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/core/platform/retrying_file_system.h')
-rw-r--r--tensorflow/core/platform/retrying_file_system.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/tensorflow/core/platform/retrying_file_system.h b/tensorflow/core/platform/retrying_file_system.h
index 15433459fb4..ec739fb215a 100644
--- a/tensorflow/core/platform/retrying_file_system.h
+++ b/tensorflow/core/platform/retrying_file_system.h
@@ -144,6 +144,12 @@ class RetryingFileSystem : public FileSystem {
return base_file_system_->HasAtomicMove(path, has_atomic_move);
}
+ Status CanCreateTempFile(const std::string& fname,
+ bool* can_create_temp_file) override {
+ // this method does not need to be retried
+ return base_file_system_->CanCreateTempFile(fname, can_create_temp_file);
+ }
+
Status DeleteRecursively(const string& dirname, TransactionToken* token,
int64_t* undeleted_files,
int64_t* undeleted_dirs) override {