Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions Replicator/Replicator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include "StringUtil.hh"
#include "Logging.hh"
#include "Headers.hh"
#include "UUID.hh"
#include "Instrumentation.hh"
#include "fleece/Mutable.hh"

Expand Down Expand Up @@ -117,11 +118,6 @@ namespace litecore::repl {
_loggingID = string(db->useLocked()->getPath()) + " " + _loggingID;
_importance = 2;

string dbLogName = db->useLocked([](const C4Database* db) {
DatabaseImpl* impl = asInternal(db);
return impl->dataFile()->loggingName();
});

#ifdef LITECORE_CPPTEST
_delayChangesResponse = _options->delayChangesResponse();
_disableReplacementRevs = _options->disableReplacementRevs();
Expand Down Expand Up @@ -835,7 +831,10 @@ namespace litecore::repl {
logVerbose("Requesting get collections");

MessageBuilder msg("getCollections"_sl);
auto& enc = msg.jsonBody();
UUID uuid = _db->useLocked([](C4Database* db) { return db->getPublicUUID(); });
msg["uuid"_sl] = uuid.to_string();

auto& enc = msg.jsonBody();
enc.beginDict();
enc.writeKey("checkpoint_ids"_sl);
enc.beginArray();
Expand Down