bitset: Rename bitset_stream_on/off as bitset_enable/disable_stream
This commit is contained in:
@@ -289,7 +289,7 @@ static inline uint64_t bitset_stream_queued_bytes(
|
||||
return total;
|
||||
}
|
||||
|
||||
static inline void bitset_stream_on( struct bitset * set )
|
||||
static inline void bitset_enable_stream( struct bitset * set )
|
||||
{
|
||||
BITSET_LOCK;
|
||||
set->stream_enabled = 1;
|
||||
@@ -297,7 +297,7 @@ static inline void bitset_stream_on( struct bitset * set )
|
||||
BITSET_UNLOCK;
|
||||
}
|
||||
|
||||
static inline void bitset_stream_off( struct bitset * set )
|
||||
static inline void bitset_disable_stream( struct bitset * set )
|
||||
{
|
||||
BITSET_LOCK;
|
||||
bitset_stream_enqueue( set, BITSET_STREAM_OFF, 0, set->size );
|
||||
|
@@ -762,7 +762,7 @@ void mirror_run( struct server *serve )
|
||||
* should expand the event loop upwards so we can do the same there too */
|
||||
sock_set_nonblock( m->client, 1 );
|
||||
|
||||
bitset_stream_on( serve->allocation_map );
|
||||
bitset_enable_stream( serve->allocation_map );
|
||||
|
||||
info( "Entering event loop" );
|
||||
ev_run( ctrl.ev_loop, 0 );
|
||||
@@ -789,7 +789,7 @@ void mirror_run( struct server *serve )
|
||||
/* mirror_reset will be called before a retry, so keeping hold of events
|
||||
* between now and our next mirroring attempt is not useful
|
||||
*/
|
||||
bitset_stream_off( serve->allocation_map );
|
||||
bitset_disable_stream( serve->allocation_map );
|
||||
}
|
||||
|
||||
return;
|
||||
|
Reference in New Issue
Block a user