fn commit(&self, sealed_cs: SealedChangeSet) -> Result<()> {
        self.db.write_schemas(sealed_cs.batch)?;

        match self.db.get_approximate_sizes_cf() {
            Ok(cf_sizes) => {
                for (cf_name, size) in cf_sizes {
                    OP_COUNTER.set(&format!("cf_size_bytes_{}", cf_name), size as usize);
                }
            }
            Err(err) => warn!(
                "Failed to get approximate size of column families: {}.",
                err
            ),
        }

        Ok(())
    }
/// Write the whole schema batch including all data necessary to mutate the ledger
/// state of some transaction by leveraging rocksdb atomicity support. Also committed are the
/// LedgerCounters.
Write the whole schema batch including all data necessary to mutate the ledger
state of some transaction by leveraging rocksdb atomicity support. Also committed are the
LedgerCounters.
Write the whole schema batch including all data necessary to mutate the ledger state of some transaction by leveraging rocksdb atomicity support . Also committed are the LedgerCounters .
fn commit(&self, sealed_cs: SealedChangeSet) -> Result<()> {
        self.db.write_schemas(sealed_cs.batch)?;
        match self.db.get_approximate_sizes_cf() {
            Ok(cf_sizes) => {
                for (cf_name, size) in cf_sizes {
                    OP_COUNTER.set(&format!("cf_size_bytes_{}", cf_name), size as usize);
                }
            }
            Err(err) => warn!(
                "Failed to get approximate size of column families: {}.",
                err
            ),
        }
        Ok(())
    }
fn commit ( & self , sealed_cs : SealedChangeSet ) -> Result < ( ) > { self . db . write_schemas ( sealed_cs . batch ) ? ; match self . db . get_approximate_sizes_cf ( ) { Ok ( cf_sizes ) => { for ( cf_name , size ) in cf_sizes { OP_COUNTER . set ( & format ! ( " " cf_name ) , size as usize ) ; } } Err ( err ) => warn ! ( " " err ) , } Ok ( ( ) ) }
Write the whole schema batch including all data necessary to mutate the ledger
state of some transaction by leveraging rocksdb atomicity support.
Write the whole schema batch including all data necessary to mutate the ledger state of some transaction by leveraging rocksdb atomicity support .
&self
sealed_cs
SealedChangeSet
&self
sealed_cs
SealedChangeSet