From 5650231df3094044af03966215399cfa8a4fd723 Mon Sep 17 00:00:00 2001 From: Pankaj Garg Date: Fri, 11 Oct 2019 12:18:11 -0700 Subject: [PATCH] Increase buffer size for erasure meta DB column (#6335) --- core/src/blocktree/rocks.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/blocktree/rocks.rs b/core/src/blocktree/rocks.rs index 54daccd84e..a4d31cea62 100644 --- a/core/src/blocktree/rocks.rs +++ b/core/src/blocktree/rocks.rs @@ -419,11 +419,11 @@ impl std::convert::From for Error { } fn get_cf_options(name: &'static str) -> Options { - use crate::blocktree::db::columns::{ShredCode, ShredData, Index}; + use crate::blocktree::db::columns::{ErasureMeta, Index, ShredCode, ShredData}; let mut options = Options::default(); match name { - ShredCode::NAME | ShredData::NAME | Index::NAME => { + ShredCode::NAME | ShredData::NAME | Index::NAME | ErasureMeta::NAME => { // 512MB * 8 = 4GB. 2 of these columns should take no more than 8GB of RAM options.set_max_write_buffer_number(8); options.set_write_buffer_size(MAX_WRITE_BUFFER_SIZE as usize);