Quellcode durchsuchen

fix ParseInternalKey bug

main
VirgilZhu vor 8 Monaten
Ursprung
Commit
b6143be065
3 geänderte Dateien mit 2 neuen und 3 gelöschten Zeilen
  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 Datei anzeigen

@ -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 Datei anzeigen

@ -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 Datei anzeigen

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

Laden…
Abbrechen
Speichern