mirror of
				https://github.com/ton-blockchain/ton
				synced 2025-03-09 15:40:10 +00:00 
			
		
		
		
	Limit RocksDB logs size (#1278)
* fix logging of failed destroy attempts * limit rocksdb log size
This commit is contained in:
		
							parent
							
								
									97398b7db0
								
							
						
					
					
						commit
						3e806bf46e
					
				
					 2 changed files with 6 additions and 9 deletions
				
			
		|  | @ -85,6 +85,8 @@ Result<RocksDb> RocksDb::open(std::string path, RocksDbOptions options) { | |||
|     db_options.bytes_per_sync = 1 << 20; | ||||
|     db_options.writable_file_max_buffer_size = 2 << 14; | ||||
|     db_options.statistics = options.statistics; | ||||
|     db_options.max_log_file_size = 100 << 20; | ||||
|     db_options.keep_log_file_num = 1; | ||||
|     rocksdb::OptimisticTransactionDBOptions occ_options; | ||||
|     occ_options.validate_policy = rocksdb::OccValidationPolicy::kValidateSerial; | ||||
|     rocksdb::ColumnFamilyOptions cf_options(db_options); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue