-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CBG-4203 pass RevSeqNo for on demand imports #7273
base: release/anemone
Are you sure you want to change the base?
Conversation
@@ -48,6 +48,20 @@ func realDocID(docid string) string { | |||
return docid | |||
} | |||
|
|||
// getRevSeqNo fetches the revSeqNo for a document, using the virtual xattr if available, otherwise the document body. Returns the cas from this fetch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The 'otherwise the document body' part of the comment doesn't look like it's still valid?
return 0, 0, err | ||
} | ||
// CBG-4233: revSeqNo not implemented yet in rosmar | ||
if c.dbCtx.BucketSpec.IsWalrusBucket() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this check happen prior to line 53?
doc, importErr = c.OnDemandImportForGet(ctx, docid, rawBucketDoc.Body, rawBucketDoc.Xattrs, rawBucketDoc.Cas) | ||
if importErr != nil { | ||
return nil, nil, importErr | ||
// reload to get revseqno |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// reload to get revseqno | |
// reload to get revseqno for on-demand import |
Pass
RevSeqNo
for on demand imports, write and get.Pre-review checklist
fmt.Print
,log.Print
, ...)base.UD(docID)
,base.MD(dbName)
)docs/api
Integration Tests
GSI=true,xattrs=true
https://jenkins.sgwdev.com/job/SyncGateway-Integration/2889/