aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/platform/cloud/gcs_file_system.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/core/platform/cloud/gcs_file_system.cc')
-rw-r--r--tensorflow/core/platform/cloud/gcs_file_system.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/tensorflow/core/platform/cloud/gcs_file_system.cc b/tensorflow/core/platform/cloud/gcs_file_system.cc
index ec77861480..aa35e8a116 100644
--- a/tensorflow/core/platform/cloud/gcs_file_system.cc
+++ b/tensorflow/core/platform/cloud/gcs_file_system.cc
@@ -631,6 +631,9 @@ GcsFileSystem::GcsFileSystem()
// Setting either to 0 disables the cache; set both for good measure.
block_size = max_bytes = 0;
}
+ VLOG(1) << "GCS cache max size = " << max_bytes << " ; "
+ << "block size = " << block_size << " ; "
+ << "max staleness = " << max_staleness;
file_block_cache_ = MakeFileBlockCache(block_size, max_bytes, max_staleness);
// Apply overrides for the stat cache max age and max entries, if provided.
uint64 stat_cache_max_age = kStatCacheDefaultMaxAge;
@@ -1557,6 +1560,7 @@ Status GcsFileSystem::CreateHttpRequest(std::unique_ptr<HttpRequest>* request) {
return Status::OK();
}
-REGISTER_FILE_SYSTEM("gs", RetryingGcsFileSystem);
-
} // namespace tensorflow
+
+// Initialize gcs_file_system
+REGISTER_FILE_SYSTEM("gs", ::tensorflow::RetryingGcsFileSystem);