Преглед на файлове

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

Зареждане…
Отказ
Запис