作者: 谢瑞阳 10225101483 徐翔宇 10225101535
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

30 rindas
816 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 "leveldb/options.h"
  5. #include "leveldb/comparator.h"
  6. #include "leveldb/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(4<<20),
  16. max_open_files(1000),
  17. block_cache(NULL),
  18. block_size(4096),
  19. block_restart_interval(16),
  20. max_file_size(2<<20),
  21. compression(kSnappyCompression),
  22. reuse_logs(false),
  23. filter_policy(NULL) {
  24. }
  25. } // namespace leveldb