Skip to content
Snippets Groups Projects
Commit 7b83b73d authored by Serge Petrenko's avatar Serge Petrenko Committed by Kirill Yukhin
Browse files

box: expose box_is_orphan method

is_orphan status check is needed by applier in order to tell relay
whether to send the instance's own rows back or not.

Prerequisite #4739
parent 5e5d5a4a
No related branches found
No related tags found
No related merge requests found
......@@ -247,6 +247,12 @@ box_is_ro(void)
return is_ro || is_orphan;
}
bool
box_is_orphan(void)
{
return is_orphan;
}
int
box_wait_ro(bool ro, double timeout)
{
......
......@@ -105,6 +105,9 @@ box_set_ro();
bool
box_is_ro(void);
bool
box_is_orphan(void);
/**
* Wait until the instance switches to a desired mode.
* \param ro wait read-only if set or read-write if unset
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment