• A
    Allow Pub/Sub in contexts where other commands are blocked. · 5d73073f
    antirez 提交于
    Redis loading data from disk, and a Redis slave disconnected from its
    master with serve-stale-data disabled, are two conditions where
    commands are normally refused by Redis, returning an error.
    
    However there is no reason to disable Pub/Sub commands as well, given
    that this layer does not interact with the dataset. To allow Pub/Sub in
    as many contexts as possible is especially interesting now that Redis
    Sentinel uses Pub/Sub of a Redis master as a communication channel
    between Sentinels.
    
    This commit allows Pub/Sub to be used in the above two contexts where
    it was previously denied.
    5d73073f
redis.h 52.5 KB