Disable stdout/stderr buffering

Vitaliy Filippov 2020-09-11 16:52:51 +03:00
parent 53832d184a
commit 6e72cf2732
2 changed files with 25 additions and 0 deletions

View File

@ -58,6 +58,29 @@ class Mon
recovery_queue_depth: 4,
readonly: false,
print_stats_interval: 3,
// blockstore - fixed in superblock
block_size,
disk_alignment,
journal_block_size,
meta_block_size,
bitmap_granularity,
journal_device,
journal_offset,
journal_size,
disable_journal_fsync,
data_device,
data_offset,
data_size,
disable_data_fsync,
meta_device,
meta_offset,
disable_meta_fsync,
disable_device_lock,
// blockstore - configurable
flusher_count,
inmemory_metadata,
inmemory_journal,
journal_sector_buffer_count,
}, */
global: {},
/* node_placement: {

View File

@ -18,6 +18,8 @@ static void handle_sigint(int sig)
int main(int narg, char *args[])
{
setvbuf(stdout, NULL, _IONBF, 0);
setvbuf(stderr, NULL, _IONBF, 0);
if (sizeof(osd_any_op_t) > OSD_PACKET_SIZE ||
sizeof(osd_any_reply_t) > OSD_PACKET_SIZE)
{