-
Notifications
You must be signed in to change notification settings - Fork 65
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
avoid log fatal #466
avoid log fatal #466
Conversation
Signed-off-by: Ignacio Hagopian <[email protected]>
// @todo: Clean up tag numbers with next major release | ||
message NewDBRequest { | ||
bytes dbID = 1; | ||
repeated CollectionConfig collections = 2; | ||
string name = 3; | ||
bool block = 5; | ||
bytes threadKey = 6; | ||
bytes key = 6; | ||
bytes logKey = 7; | ||
string name = 3; | ||
repeated CollectionConfig collections = 2; | ||
|
||
bool block = 5 [deprecated = true]; | ||
} | ||
|
||
// @todo: Clean up tag numbers with next major release | ||
message NewDBFromAddrRequest { | ||
bytes addr = 1; | ||
bytes key = 2; | ||
repeated CollectionConfig collections = 3; | ||
bytes logKey = 7; | ||
string name = 4; | ||
repeated CollectionConfig collections = 3; | ||
bool block = 5; | ||
bytes threadKey = 6; | ||
bytes logKey = 7; | ||
|
||
bytes threadKey = 6 [deprecated = true]; | ||
} |
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.
Somehow I missed this in Daniel's PR. threadKey
was added, but we already have key
. This change does not modify the proto tag numbers. We can clean this up on the next major release.
db.WithNewManagedToken(token), | ||
db.WithNewManagedBackfillBlock(req.Block), |
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.
This has no meaning in the context of NewDB
return nil, err | ||
} | ||
if args.Key.Defined() && !args.Key.CanRead() { | ||
return nil, ErrThreadReadKeyRequired |
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.
Early out if thread key does not contain a read component.
Signed-off-by: Sander Pick <[email protected]>
5654eb3
to
a44bcef
Compare
FYI, this changed the public API: |
Doh, thanks for the heads up @jtacoma - I'll make a not on the release that includes those changes. |
No description provided.