浏览代码

fix ParseInternalKey bug

main
VirgilZhu 8 个月前
父节点
当前提交
b6143be065
共有 3 个文件被更改,包括 2 次插入3 次删除
  1. +1
    -0
      db/db_impl.h
  2. +1
    -1
      db/dbformat.h
  3. +0
    -2
      db/fields.cpp

+ 1
- 0
db/db_impl.h 查看文件

@ -20,6 +20,7 @@
#include "leveldb/env.h"
#include "port/port.h"
#include "port/thread_annotations.h"
#include "port/port_stdcxx.h"
namespace leveldb {

+ 1
- 1
db/dbformat.h 查看文件

@ -54,7 +54,7 @@ class InternalKey;
// Value types encoded as the last component of internal keys.
// DO NOT CHANGE THESE ENUM VALUES: they are embedded in the on-disk
// data structures.
enum ValueType { kTypeDeletion = 0x0, kTypeValue = 0x1, kTypeSeparation = 0x2};
enum ValueType { kTypeDeletion = 0x0, kTypeValue = 0x2, kTypeSeparation = 0x1};
// kValueTypeForSeek defines the ValueType that should be passed when
// constructing a ParsedInternalKey object for seeking to a particular
// sequence number (since we sort sequence numbers in decreasing order

+ 0
- 2
db/fields.cpp 查看文件

@ -289,6 +289,4 @@ std::vector Fields::FindKeysByFields(leveldb::DB* db, const FieldAr
return find_keys;
}
} // namespace leveldb

正在加载...
取消
保存