[Tarantool-patches] [PATCH v7 5/8] applier: factor out latch locking
Cyrill Gorcunov
gorcunov at gmail.com
Sat Aug 15 19:27:00 MSK 2020
On Sat, Aug 15, 2020 at 05:04:32PM +0200, Vladislav Shpilevoy wrote:
> > +static inline struct latch *
> > +applier_lock(uint32_t replica_id)
> > +{
> > + struct replica *replica = replica_by_id(replica_id);
> > + struct latch *latch = (replica ? &replica->order_latch :
>
> We usually use != NULL to check if a pointer is not NULL. To emphasize
> it is not a boolean variable in the code.
I simply copied this code from old place. But sure, will add.
More information about the Tarantool-patches
mailing list