diff --git a/db/version_set.cc b/db/version_set.cc index 90276d5..c9dd8a0 100644 --- a/db/version_set.cc +++ b/db/version_set.cc @@ -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 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: "<s.ok()<<" "<saver.state<s.ok()) { state->found = true;