21 #ifndef XAPIAN_INCLUDED_REPLICATE_UTILS_H 22 #define XAPIAN_INCLUDED_REPLICATE_UTILS_H 44 const std::string & filename,
45 std::string & changes_name);
56 #endif // XAPIAN_INCLUDED_REPLICATE_UTILS_H void write_and_clear_changes(int changes_fd, std::string &buf, size_t bytes)
Write some changes from a buffer, and then drop them from the buffer.
int create_changeset_file(const std::string &changeset_dir, const std::string &filename, std::string &changes_name)
Create a new changeset file, and return an open fd for writing to it.