Skip to content

Commit

Permalink
Additional test logging (turn on Sync, log HLVs on IsDominating)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamcfraser committed Jan 10, 2025
1 parent 9ee9127 commit 3685eec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion db/crud.go
Original file line number Diff line number Diff line change
Expand Up @@ -1242,7 +1242,7 @@ func (db *DatabaseCollectionWithUser) PutExistingCurrentVersion(ctx context.Cont
}
} else {
if doc.HLV.isDominating(newDocHLV) {
base.DebugfCtx(ctx, base.KeyCRUD, "PutExistingCurrentVersion(%q): No new versions to add", base.UD(newDoc.ID))
base.DebugfCtx(ctx, base.KeyCRUD, "PutExistingCurrentVersion(%q): No new versions to add. existing: %#v new:%#v", base.UD(newDoc.ID), doc.HLV, newDocHLV)
return nil, nil, false, nil, base.ErrUpdateCancel // No new revisions to add
}
if newDocHLV.isDominating(doc.HLV) {
Expand Down
2 changes: 1 addition & 1 deletion topologytest/peer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ func updatePeersT(t *testing.T, peers map[string]Peer) {

// setupTests returns a map of peers and a list of replications. The peers will be closed and the buckets will be destroyed by t.Cleanup.
func setupTests(t *testing.T, topology Topology) (base.ScopeAndCollectionName, Peers, Replications) {
base.SetUpTestLogging(t, base.LevelDebug, base.KeyImport, base.KeyVV, base.KeyCRUD)
base.SetUpTestLogging(t, base.LevelDebug, base.KeyImport, base.KeyVV, base.KeyCRUD, base.KeySync)
peers := createPeers(t, topology.peers)
replications := createPeerReplications(t, peers, topology.replications)

Expand Down

0 comments on commit 3685eec

Please sign in to comment.