mirror of
https://github.com/matrix-construct/construct
synced 2024-11-26 00:32: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;
|
string_view hint;
|
||||||
|
|
||||||
bool hint_only {false};
|
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,
|
ircd::m::acquire::acquire::acquire(const room &room,
|
||||||
const opts &opts)
|
const opts &opts)
|
||||||
{
|
{
|
||||||
handle_room(room, opts);
|
if(opts.head)
|
||||||
ctx::interruption_point();
|
{
|
||||||
|
handle_room(room, opts);
|
||||||
|
ctx::interruption_point();
|
||||||
|
}
|
||||||
|
|
||||||
handle_missing(room, opts);
|
if(opts.missing)
|
||||||
ctx::interruption_point();
|
{
|
||||||
|
handle_missing(room, opts);
|
||||||
|
ctx::interruption_point();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in a new issue