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

reset lease time after bootstrap #514

Merged

Conversation

siddontang
Copy link
Member

@ngaut
Copy link
Member

ngaut commented Nov 4, 2015

LGTM

// IsBootstrapped returns whether we have already run bootstrap or not.
// return true means we don't need doing any other bootstrap.
func (m *Meta) IsBootstrapped() (bool, error) {
value, err := m.txn.GetInt64(mBootstrapKey)
Copy link
Member

Choose a reason for hiding this comment

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

Why not use Get but GetInt64, seems in line 534 u set "1".

Copy link
Member Author

Choose a reason for hiding this comment

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

For set "1", we can use GetInt64 to fetch this number directly, no need to do another conversation.

siddontang added a commit that referenced this pull request Nov 5, 2015
@siddontang siddontang merged commit 0556faf into siddontang/dev-schema-change Nov 5, 2015
@siddontang siddontang deleted the siddontang/schema-bootstrap branch November 5, 2015 05:35
YuJuncen pushed a commit to YuJuncen/tidb that referenced this pull request Apr 23, 2021
rleungx pushed a commit to rleungx/tidb that referenced this pull request Feb 26, 2024
* Adds a feature whitelist at planbuild stage (pingcap#304)

* init

Signed-off-by: David <[email protected]>

* format errors

Signed-off-by: David <[email protected]>

* restrict information schema

Signed-off-by: David <[email protected]>

* fmt

Signed-off-by: David <[email protected]>

* bazel

Signed-off-by: David <[email protected]>

* fmt

Signed-off-by: David <[email protected]>

* disable datadir

Signed-off-by: David <[email protected]>

* add ttl check for create and alter table

Signed-off-by: David <[email protected]>

* create table ttl

Signed-off-by: David <[email protected]>

* address comments

Signed-off-by: David <[email protected]>

* update error doc

Signed-off-by: David <[email protected]>

* add the back to the error message

Signed-off-by: David <[email protected]>

* unblock 'SHOW CONFIG' for lightning

Signed-off-by: David <[email protected]>

---------

Signed-off-by: David <[email protected]>
Co-authored-by: zzm <[email protected]>
Signed-off-by: AmoebaProtozoa <[email protected]>
# Conflicts:
#	ddl/BUILD.bazel
#	errno/errname.go
#	util/sem/sem.go

* sem placement rule (pingcap#222)

sem placement rule

Signed-off-by: AmoebaProtozoa <[email protected]>

* make check

Signed-off-by: AmoebaProtozoa <[email protected]>

* change statement config by serverless version (pingcap#247)

* change statement config by serverless version
---------

Signed-off-by: zeminzhou <[email protected]>
Signed-off-by: AmoebaProtozoa <[email protected]>

* limit the max_execution_time in serverless tier (pingcap#385)

Signed-off-by: AmoebaProtozoa <[email protected]>

* off 1pc (pingcap#404)

* off 1pc

Signed-off-by: ystaticy <[email protected]>

---------

Signed-off-by: AmoebaProtozoa <[email protected]>
Signed-off-by: zeminzhou <[email protected]>
Signed-off-by: ystaticy <[email protected]>
Co-authored-by: ystaticy <[email protected]>
Co-authored-by: zzm <[email protected]>
Co-authored-by: iosmanthus <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants