Anonymous avatar Anonymous committed 318e430

Rename macro to reflect new tuple order.

Comments (0)

Files changed (1)

apps/merge_index/src/mi_segment_writer.erl

 -define(VALUES_COMPRESS_LEVEL(W), W#writer.segment_values_compression_level).
 -define(INDEX_FIELD_TERM(X), {element(1, X), element(2, X), element(3, X)}).
 -define(VALUE(X), element(4, X)).
--define(VALUE_PROPS_TSTAMP(X), {element(4, X), element(5, X), element(6, X)}).
+-define(VALUE_TSTAMP_PROPS(X), {element(4, X), element(5, X), element(6, X)}).
 
 -record(writer, {data_file,
                  offsets_table,
   when ?INDEX_FIELD_TERM(Entry) == StartIFT andalso
        ?VALUE(Entry) /= LastValue ->
     %% Add the next value to the segment.
-    W1 = from_iterator_process_value(?VALUE_PROPS_TSTAMP(Entry), W),
+    W1 = from_iterator_process_value(?VALUE_TSTAMP_PROPS(Entry), W),
     from_iterator(Iterator(), StartIFT, ?VALUE(Entry), W1);
 
 from_iterator({Entry, Iterator}, StartIFT, _LastValue, W) 
     %% Start a new term.
     W1 = from_iterator_process_end_term(StartIFT, W),
     W2 = from_iterator_process_start_term(?INDEX_FIELD_TERM(Entry), W1),
-    W3 = from_iterator_process_value(?VALUE_PROPS_TSTAMP(Entry), W2),
+    W3 = from_iterator_process_value(?VALUE_TSTAMP_PROPS(Entry), W2),
     from_iterator(Iterator(), ?INDEX_FIELD_TERM(Entry), ?VALUE(Entry), W3);
 
 from_iterator({Entry, Iterator}, StartIFT, LastValue, W) 
     %% Start of segment.
     W1 = from_iterator_process_start_segment(W),
     W2 = from_iterator_process_start_term(?INDEX_FIELD_TERM(Entry), W1),
-    W3 = from_iterator_process_value(?VALUE_PROPS_TSTAMP(Entry), W2),
+    W3 = from_iterator_process_value(?VALUE_TSTAMP_PROPS(Entry), W2),
     from_iterator(Iterator(), ?INDEX_FIELD_TERM(Entry), ?VALUE(Entry), W3);
 
 from_iterator(eof, StartIFT, _LastValue, W) ->
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.