Skip to content

Commit b2c4328

Browse files
committed
fix race condition
1 parent 367a62c commit b2c4328

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rest/utilities_testing_blip_client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ func (cd *clientDoc) _proposeChangesEntryForDoc() *proposeChangeBatchEntry {
295295
}
296296
revTreeIDHistory = append(revTreeIDHistory, cd._revisionsBySeq[seq].version.RevTreeID)
297297
}
298-
return &proposeChangeBatchEntry{docID: cd.id, version: latestRev.version, revTreeIDHistory: revTreeIDHistory, hlvHistory: latestRev.HLV, latestServerVersion: cd._latestServerVersion, seq: cd._latestSeq, isDelete: latestRev.isDelete}
298+
return &proposeChangeBatchEntry{docID: cd.id, version: latestRev.version, revTreeIDHistory: revTreeIDHistory, hlvHistory: *latestRev.HLV.Copy(), latestServerVersion: cd._latestServerVersion, seq: cd._latestSeq, isDelete: latestRev.isDelete}
299299
}
300300

301301
// _getLatestHLVCopy returns a copy of the HLV. If there is no document, return an empty HLV.

0 commit comments

Comments
 (0)