Lines Matching refs:opt_
32 status = opt_.ValidateSettings(); in Open()
35 Error(opt_.log, "Invalid block cache options"); in Open()
40 status = opt_.env->CreateDirIfMissing(opt_.path); in Open()
42 Error(opt_.log, "Error creating directory %s. %s", opt_.path.c_str(), in Open()
48 status = opt_.env->CreateDir(GetCachePath()); in Open()
54 Error(opt_.log, "Error creating directory %s. %s", opt_.path.c_str(), in Open()
64 Error(opt_.log, "Error creating new file %s. %s", opt_.path.c_str(), in Open()
71 if (opt_.pipeline_writes) { in Open()
94 Status status = opt_.env->GetChildren(folder, &files); in CleanupCacheFolder()
96 Error(opt_.log, "Error getting files for %s. %s", folder.c_str(), in CleanupCacheFolder()
105 Info(opt_.log, "Removing file %s.", file.c_str()); in CleanupCacheFolder()
106 status = opt_.env->DeleteFile(folder + "/" + file); in CleanupCacheFolder()
108 Error(opt_.log, "Error deleting file %s. %s", file.c_str(), in CleanupCacheFolder()
113 ROCKS_LOG_DEBUG(opt_.log, "Skipping file %s", file.c_str()); in CleanupCacheFolder()
121 if (opt_.pipeline_writes && insert_th_.joinable()) { in Close()
179 if (opt_.pipeline_writes) { in Insert()
186 assert(!opt_.pipeline_writes); in Insert()
225 StopWatchNano timer(opt_.env, /*auto_start=*/ true); in InsertImpl()
237 ROCKS_LOG_DEBUG(opt_.log, "Error inserting to cache file %d", in InsertImpl()
268 StopWatchNano timer(opt_.env, /*auto_start=*/ true); in Lookup()
331 new WriteableCacheFile(opt_.env, &buffer_allocator_, &writer_, in NewCacheFile()
333 opt_.cache_file_size, opt_.log)); in NewCacheFile()
335 bool status = f->Create(opt_.enable_direct_writes, opt_.enable_direct_reads); in NewCacheFile()
340 Info(opt_.log, "Created cache file %d", writer_cache_id_); in NewCacheFile()
349 Error(opt_.log, "Error inserting to metadata"); in NewCacheFile()
358 assert(size_ <= opt_.cache_size); in Reserve()
360 if (size + size_ <= opt_.cache_size) { in Reserve()
366 assert(size + size_ >= opt_.cache_size); in Reserve()
371 while (size + size_ > opt_.cache_size * retain_fac) { in Reserve()
389 assert(size_ <= opt_.cache_size * 0.9); in Reserve()