Skip to content
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

fix: Don't allow idx flag to be set to 0 on dgraph zero (#6156) #6191

Merged
merged 2 commits into from
Aug 17, 2020

Conversation

rahulgurnani
Copy link
Contributor

@rahulgurnani rahulgurnani commented Aug 14, 2020

Cherry pick

  • Fix DGRAPH-2185

  • Update the help message for idx flag in dgraph zero


This change is Reviewable

Docs Preview: Dgraph Preview

* Fix DGRAPH-2185

* Update the help message for idx flag in dgraph zero
Copy link
Contributor

@parasssh parasssh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewable status: 0 of 1 files reviewed, all discussions resolved (waiting on @manishrjain and @parasssh)

@@ -185,6 +185,10 @@ func run() {
LudicrousMode: Zero.Conf.GetBool("ludicrous_mode"),
}

if opts.nodeId == 0 {
log.Fatalf("ERROR: Cannot idx flag cannot be 0. Please try again with idx as a positive integer")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you reword the error message? @rahulgurnani

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for pointing it out!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed on master and cherry picked here

@parasssh parasssh merged commit 51a191f into release/v20.03 Aug 17, 2020
@joshua-goldstein joshua-goldstein deleted the rahulgurnani/cherrypick_20.03 branch August 11, 2022 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants