Comments (13)
We have already support version. https://github.com/pingcap/tidb/blob/master/util/printer/printer.go#L23
from tidb.
That's weird. Why put the version in the util package? From the structure it's not make sense.
from tidb.
We may use it in interpreter. MySQL protocol layer. Or HBase engine.
Put to util package, so we keep it DRY.
from tidb.
You mean you will use the version in many other packages? Then the version is out of control. 😸
from tidb.
WOW, User could pass version information to those variables :)
from tidb.
@ngaut Well... You can make then read-only.
from tidb.
It's read only after assignment.
from tidb.
any updates? @ngaut
from tidb.
from tidb.
I have no idea on the version now. AFAIK https://github.com/pingcap/tidb/blob/master/util/printer/printer.go#L23 looks not good enough.
from tidb.
+1
Need something like Version()
around here, and it should return semantic version, so app can check it in case a bug was introduced in older version but fixed in newer one.
from tidb.
the version number is useful to version control.
Now I find that if tidb code updated, the old goleveldb data directory can't load.
So I need lock a version to make sure to develop and compile.
from tidb.
Currently TiDB is evolving extremely fast. The version information is generated automatically by makefile:
LDFLAGS += -X "github.com/pingcap/tidb/util/printer.TiDBBuildTS=$(shell date -u '+%Y-%m-%d %I:%M:%S')"
LDFLAGS += -X "github.com/pingcap/tidb/util/printer.TiDBGitHash=$(shell git rev-parse HEAD)"
Does that sound ok? @fuxiaohei
from tidb.
Related Issues (20)
- tidb log print "connection running loop panic [err="Trying to start aggressive locking while it's already started"] " when run tpcc and import into HOT 3
- dumpling: Support check keyspace in dumpling
- when `truncate(...)` is `NULL`, `truncate(...) is not NULL` evaluates to 1 unexpectedly
- `upper(c1) <=> c1` evaluates to 0 unexpectedly HOT 1
- index out of range [0] with length 0 in `(*Column).IsNull`
- release: v8.2.0
- release: v8.1.1
- release: v7.5.3
- release: v7.1.6
- wrong value in the Sync Load QPS
- Log Backup being paused due to a false positive in the automatic lag check.
- Showing the progress of loading initial stats
- test TestMppAggShouldAlignFinalMode unstable
- Tracking Issue for Predicate Columns
- invalid memory address or nil pointer dereference in `expression.inferCollation` HOT 3
- invalid memory address or nil pointer dereference in `expression.RemoveDupExprs` HOT 3
- import large zstd files may encounter error HOT 2
- dumpling -V outputs the information to stderr
- min start ts of `initStatsCtx` is not tracked
- invalid memory address or nil pointer dereference in `core.(*LogicalCTE).PredicatePushDown` HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tidb.