(cherry picked from commit 983828a2a9
)
Co-authored-by: steviez <steven@solana.com>
This commit is contained in:
@ -363,7 +363,7 @@ impl Rocks {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn get_cf(&self, cf: &ColumnFamily, key: &[u8]) -> Result<Option<Vec<u8>>> {
|
fn get_cf(&self, cf: &ColumnFamily, key: &[u8]) -> Result<Option<Vec<u8>>> {
|
||||||
let opt = self.0.get_cf(cf, key)?.map(|db_vec| db_vec.to_vec());
|
let opt = self.0.get_cf(cf, key)?;
|
||||||
Ok(opt)
|
Ok(opt)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user