Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Unique system ids for cached initdb #35
Conversation
Codecov Report
@@ Coverage Diff @@
## master #35 +/- ##
==========================================
- Coverage 97.17% 97.17% -0.01%
==========================================
Files 13 13
Lines 1167 1202 +35
==========================================
+ Hits 1134 1168 +34
- Misses 33 34 +1
Continue to review full report at Codecov.
|
56f79aa
into
postgrespro:master
I've modified shardman to use this stuff and it works great, thanks. |
system_id |= (os.getpid() & 0xFFF) | ||
|
||
# pack ULL in native byte order | ||
return struct.pack('=Q', system_id) |
arssher
Feb 24, 2018
Contributor
This will probably bail out with struct.error: argument out of range
after 19 January 2038, but for now it is fine :)
This will probably bail out with struct.error: argument out of range
after 19 January 2038, but for now it is fine :)
arssher
Feb 24, 2018
Contributor
Ah, =Q is unsigned. Yes, then we have 68 years more.
Ah, =Q is unsigned. Yes, then we have 68 years more.
If enabled, generate unique system ids for nodes spawned from initdb cache.