小组成员:10215300402-朱维清 & 10222140408 谷杰
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

29 líneas
756 B

  1. // Copyright (c) 2011 The LevelDB Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file. See the AUTHORS file for names of contributors.
  4. #include "include/options.h"
  5. #include "include/comparator.h"
  6. #include "include/env.h"
  7. namespace leveldb {
  8. Options::Options()
  9. : comparator(BytewiseComparator()),
  10. create_if_missing(false),
  11. error_if_exists(false),
  12. paranoid_checks(false),
  13. env(Env::Default()),
  14. info_log(NULL),
  15. write_buffer_size(1<<20),
  16. max_open_files(1000),
  17. large_value_threshold(65536),
  18. block_cache(NULL),
  19. block_size(8192),
  20. block_restart_interval(16),
  21. compression(kLightweightCompression) {
  22. }
  23. }