<commit_before>#include "master.hpp"

#include <boost/scoped_ptr.hpp>

#include "logger.hpp"
#include "replication/net_structs.hpp"
#include "replication/protocol.hpp"
#include "server/slice_dispatching_to_master.hpp"

namespace replication {

void master_t::register_dispatcher(btree_slice_dispatching_to_master_t *dispatcher) {
    dispatchers_.push_back(dispatcher);<commit_msg>Made register_dispatcher move to the master_t home_thread, since we had a race condition.  (I am a dumb lazy babby.)<commit_after>#include "master.hpp"

#include <boost/scoped_ptr.hpp>

#include "logger.hpp"
#include "replication/net_structs.hpp"
#include "replication/protocol.hpp"
#include "server/slice_dispatching_to_master.hpp"

namespace replication {

void master_t::register_dispatcher(btree_slice_dispatching_to_master_t *dispatcher) {
    on_thread_t th(home_thread);
    dispatchers_.push_back(dispatcher);
{'fraction_non_alphanumeric': 0.10244988864142539, 'fraction_numerical': 0.0, 'mean_word_length': 7.644230769230769, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4521804', 'n_tokens_mistral': 302, 'n_tokens_neox': 300, 'n_words': 55}