mirror of
https://github.com/matrix-construct/construct
synced 2024-11-25 16:22:35 +01:00
ircd:Ⓜ️:acquire: Add options to toggle operations.
This commit is contained in:
parent
ed931bcf6e
commit
befe43f45a
2 changed files with 14 additions and 4 deletions
|
@ -29,4 +29,8 @@ struct ircd::m::acquire::opts
|
|||
string_view hint;
|
||||
|
||||
bool hint_only {false};
|
||||
|
||||
bool head {false};
|
||||
|
||||
bool missing {false};
|
||||
};
|
||||
|
|
|
@ -29,11 +29,17 @@ ircd::m::acquire::log
|
|||
ircd::m::acquire::acquire::acquire(const room &room,
|
||||
const opts &opts)
|
||||
{
|
||||
handle_room(room, opts);
|
||||
ctx::interruption_point();
|
||||
if(opts.head)
|
||||
{
|
||||
handle_room(room, opts);
|
||||
ctx::interruption_point();
|
||||
}
|
||||
|
||||
handle_missing(room, opts);
|
||||
ctx::interruption_point();
|
||||
if(opts.missing)
|
||||
{
|
||||
handle_missing(room, opts);
|
||||
ctx::interruption_point();
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue