You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
since replicate->write_request() would return a default value if not present, which would lead to replicate->write_request().write_batch() returning default value as well, which would lead to replicate->write_request().write_batch().has_transaction() returning false
It would be good to have a macro to replace something like
replicate->has_write_request() && replicate->write_request().has_write_batch() && replicate->write_request().write_batch().has_transaction());
with
PB_HAS_NESTED_FIELD(replicate, write_request, write_batch, transaction)
and similarly PB_NESTED_FIELD and PB_MUTABLE_NESTED_FIELD to get the actual field.
We can even avoid repeated function calls (in the example above, to
replicate->write_request()
) in this macro's implementation.The text was updated successfully, but these errors were encountered: