Add parenthesis to the ternary operator
Without the parenthesis, this particular ASSERT will evaluate to "(RW_READER == (!zap->zap_ismicro && fatreader)) ? RW_READER : lti" Signed-off-by: Chunwei Chen <tuxoko@gmail.com> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #3685
This commit is contained in:
parent
9d4f86e825
commit
6d79eabf9f
|
@ -484,7 +484,7 @@ zap_lockdir(objset_t *os, uint64_t obj, dmu_tx_t *tx,
|
||||||
/* it was upgraded, now we only need reader */
|
/* it was upgraded, now we only need reader */
|
||||||
ASSERT(lt == RW_WRITER);
|
ASSERT(lt == RW_WRITER);
|
||||||
ASSERT(RW_READER ==
|
ASSERT(RW_READER ==
|
||||||
(!zap->zap_ismicro && fatreader) ? RW_READER : lti);
|
((!zap->zap_ismicro && fatreader) ? RW_READER : lti));
|
||||||
rw_downgrade(&zap->zap_rwlock);
|
rw_downgrade(&zap->zap_rwlock);
|
||||||
lt = RW_READER;
|
lt = RW_READER;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue