Commit 05a330bd authored by Rob Latham's avatar Rob Latham
Browse files

filetable cache: don't save errors

if a file wasn't opened (not found, bad permissions, etc) do not save
that in the cache
parent 25683e26
......@@ -49,7 +49,7 @@ struct bv_svc_provider : public tl::provider<bv_svc_provider>
auto entry = filetable.find(file);
if (entry == filetable.end() ) {
fd = abt_io_open(abt_id, file.c_str(), flags, mode);
filetable[file] = fd;
if (fd > 0) filetable[file] = fd;
} else {
fd = entry->second;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment