Browse Source

小完善

main
gyfffffff 1 month ago
parent
commit
4aceaa739f
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      db/version_set.cc

+ 3
- 3
db/version_set.cc View File

@ -107,7 +107,7 @@ int FindFile(const InternalKeyComparator& icmp,
}
while(right < files.size()) {
printf("file ind %d num %d largest deadtime %d parsed deadtime %d\n",
printf("file ind %d num %lu largest deadtime %lu parsed deadtime %lu\n",
right,files[right]->number,files[right]->largest_deadtime,parsed.deadTime);
if(files[right]->largest_deadtime >= parsed.deadTime) {
break;
@ -303,7 +303,7 @@ void Version::ForEachOverlapping(Slice user_key, Slice internal_key, void* arg,
const Comparator* ucmp = vset_->icmp_.user_comparator();
ParsedInternalKey parsed;
ParseInternalKey(internal_key,&parsed);
printf("parsed lookup deadtime : %d\n",parsed.deadTime);
printf("parsed lookup deadtime : %lu\n",parsed.deadTime);
// Search level-0 in order from newest to oldest.
std::vector<FileMetaData*> tmp;
tmp.reserve(files_[0].size());
@ -380,7 +380,7 @@ Status Version::Get(const ReadOptions& options, const LookupKey& k,
state->s = state->vset->table_cache_->Get(*state->options, f->number,
f->file_size, state->ikey,
&state->saver, SaveValue);
printf("file level %d num %d\n",level,f->number);
printf("file level %d num %lu\n", level, f->number);
std::cout<<"state->s ->saver.state: "<<state->s.ok()<<" "<<state->saver.state<<std::endl;
if (!state->s.ok()) {
state->found = true;

Loading…
Cancel
Save