]> git.sesse.net Git - remoteglot-book/blobdiff - binmerger.cpp
Set parallel merges to a value different from parallel loads.
[remoteglot-book] / binmerger.cpp
index 9bd969ead0d3795ed0a495047ad5e2ae77232a0c..94e47809d3f2f90837db6df9647ea7028e3d031e 100644 (file)
@@ -32,11 +32,15 @@ void merge_count(void* userdata,
                if (c0.has_first_timestamp()) {
                        c.set_first_timestamp(c0.first_timestamp());
                }
+               c.set_pgn_file_num(c0.pgn_file_num());
+               c.set_pgn_start_position(c0.pgn_start_position());
        } else {
                c.set_opening_num(c1.opening_num());
                if (c1.has_first_timestamp()) {
                        c.set_first_timestamp(c1.first_timestamp());
                }
+               c.set_pgn_file_num(c1.pgn_file_num());
+               c.set_pgn_start_position(c1.pgn_start_position());
        }
 
        // Merge the moves, with deduplication.