0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-02 10:08:56 +02:00

ircd::db::database::env: Fix linkage of fs::evict() options argument related.

This commit is contained in:
Jason Volk 2019-10-05 18:02:15 -07:00
parent d6c0e4cf20
commit e5f72b7855
2 changed files with 4 additions and 4 deletions

View file

@ -60,7 +60,7 @@ struct ircd::fs::opts
/// opcode and then pass the opts structure to write().
enum op op {op::NOOP};
opts(const off_t &, const enum op &op);
opts(const off_t &, const enum op & = op::NOOP);
opts() = default;
};

View file

@ -1635,7 +1635,7 @@ noexcept try
if(opts.direct)
return Status::OK();
fs::evict(fd, length, offset);
fs::evict(fd, length, fs::opts(offset));
return Status::OK();
}
catch(const std::system_error &e)
@ -3111,7 +3111,7 @@ noexcept try
if(opts.direct)
return Status::OK();
fs::evict(fd, length, offset);
fs::evict(fd, length, fs::opts(offset));
return Status::OK();
}
catch(const std::system_error &e)
@ -3382,7 +3382,7 @@ noexcept
if(opts.direct)
return Status::OK();
fs::evict(fd, length, offset);
fs::evict(fd, length, fs::opts(offset));
return Status::OK();
}