Skip to content

Commit

Permalink
CBL-619: Backport shared keys fix to cobalt
Browse files Browse the repository at this point in the history
  • Loading branch information
borrrden committed Jan 22, 2020
1 parent 3d38ee8 commit 82620b7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions LiteCore/Storage/DataFile.cc
Expand Up @@ -297,6 +297,7 @@ namespace litecore {
if (!keys && _options.useDocumentKeys) {
auto mutableThis = const_cast<DataFile*>(this);
keys = new DocumentKeys(*mutableThis);
keys->refresh();
mutableThis->_documentKeys = keys;
}
return keys;
Expand Down
2 changes: 1 addition & 1 deletion Replicator/DBAccess.cc
Expand Up @@ -311,7 +311,7 @@ namespace litecore { namespace repl {
Doc reEncodedDoc;
if (useLegacyAttachments || !useDBSharedKeys) {
Encoder enc;
enc.setSharedKeys(_tempSharedKeys);
enc.setSharedKeys(tempSharedKeys());
if (useLegacyAttachments) {
// Delta refers to legacy attachments, so convert my base revision to have them:
encodeRevWithLegacyAttachments(enc, srcRoot, 1);
Expand Down
2 changes: 1 addition & 1 deletion vendor/fleece

0 comments on commit 82620b7

Please sign in to comment.