* @returns true if writeable; false otherwise
*/
bool is_writeable() const {
- return is_write_ready();
- }
-
- /**
- * Check if we are ready to be written to. This means we must have a
- * pending value and be active.
- *
- * @returns true if we are ready to be written to; false otherwise.
- */
- bool is_write_ready() const {
return is_active() && have_pending;
}
if (is_proposing())
wait_for_finished_proposal(op, c);
- else if (!is_write_ready())
+ else if (!is_writeable())
wait_for_active(op, c);
else
paxos->wait_for_writeable(op, c);