Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

dump segment version in dump.c

  • Loading branch information...
commit 71fa85cad7d9bb1bfd47d79aa0be1605cff9c672 1 parent 8eece57
@wmorgan authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  segment.c
View
2  segment.c
@@ -725,7 +725,7 @@ wp_error* wp_segment_dumpinfo(wp_segment* segment, FILE* stream) {
#define p(a, b) 100.0 * (float)a / (float)b
- fprintf(stream, "segment has type %u\n", pr->postings_type_and_flags);
+ fprintf(stream, "segment has type %u and version %u\n", pr->postings_type_and_flags, si->segment_version);
fprintf(stream, "segment has %u docs and %u postings\n", si->num_docs, pr->num_postings);
fprintf(stream, "postings region is %6ukb at %3.1f%% saturation\n", segment->postings.content->size / 1024, p(pr->postings_head, pr->postings_tail));
fprintf(stream, " string hash is %6ukb at %3.1f%% saturation\n", segment->stringmap.content->size / 1024, p(sh->n_occupied, sh->n_buckets));
Please sign in to comment.
Something went wrong with that request. Please try again.