Procházet zdrojové kódy

fix ParseInternalKey bug

main
VirgilZhu před 8 měsíci
rodič
revize
b6143be065
3 změnil soubory, kde provedl 2 přidání a 3 odebrání
  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 Zobrazit soubor

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

+ 1
- 1
db/dbformat.h Zobrazit soubor

@ -54,7 +54,7 @@ class InternalKey;
// Value types encoded as the last component of internal keys. // Value types encoded as the last component of internal keys.
// DO NOT CHANGE THESE ENUM VALUES: they are embedded in the on-disk // DO NOT CHANGE THESE ENUM VALUES: they are embedded in the on-disk
// data structures. // 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 // kValueTypeForSeek defines the ValueType that should be passed when
// constructing a ParsedInternalKey object for seeking to a particular // constructing a ParsedInternalKey object for seeking to a particular
// sequence number (since we sort sequence numbers in decreasing order // sequence number (since we sort sequence numbers in decreasing order

+ 0
- 2
db/fields.cpp Zobrazit soubor

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

Načítá se…
Zrušit
Uložit