-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
khepri_machine: Skip extra query before a query with a fence
... if it is unneeded. [Why] We do that extra query to ensure that previous async commands were handled by the local Ra server before we proceed with the query with a fence. This comes with a performance penalty of course. We don't need that extra query if the previous command or query made by the calling process was synchronous. [How] We now keep a flag in the calling process dictionary to indicate if the last command was synchonous or it was a query. The flag is cleared with an async command. When we have to perform a query with a fence, we look at this flag to determine if the extra query is needed.
- Loading branch information
Showing
1 changed file
with
97 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters