mirror of
https://github.com/matrix-construct/construct
synced 2024-11-25 08:12:37 +01:00
ircd::db::database::env: Fix linkage of fs::evict() options argument related.
This commit is contained in:
parent
d6c0e4cf20
commit
e5f72b7855
2 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue