diff options
author | Michael Gundlach <michael.gundlach@rackspace.com> | 2010-10-12 20:08:39 +0000 |
---|---|---|
committer | Tarmac <> | 2010-10-12 20:08:39 +0000 |
commit | 4f529fe118283164ccb2756f2001805c69c1cc4a (patch) | |
tree | 176eb5146615bd45dfe731e350082f319add8770 /nova/context.py | |
parent | eeb1ac483adc21616668504772620e885944b2d7 (diff) | |
parent | f97ef73699e060a21ef8e64966f2429ff3dec237 (diff) | |
download | nova-4f529fe118283164ccb2756f2001805c69c1cc4a.tar.gz nova-4f529fe118283164ccb2756f2001805c69c1cc4a.tar.xz nova-4f529fe118283164ccb2756f2001805c69c1cc4a.zip |
Change internal_id from a 32 bit int to a 64 bit int.
Specifically, generate internal_id as a random number in [0, 2^64). SQLAlchemy has no built-in type for big integers, so the internal_id column is a PickleType, set to non-mutable to avoid performance penalties associated with mutable column types. Under the hood, this is stored as a Binary.
In Austin+1 we'll probably be replacing internal_id with a string, but we need something bigger than 32 bits for Austin.
Diffstat (limited to 'nova/context.py')
0 files changed, 0 insertions, 0 deletions