Changeset 1303
- Timestamp:
- 10/14/09 06:43:10 (6 weeks ago)
- Location:
- trunk/server/lib/MogileFS
- Files:
-
- 2 modified
-
Store.pm (modified) (1 diff)
-
Store/MySQL.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/lib/MogileFS/Store.pm
r1283 r1303 482 482 UNIQUE dkey (dmid, dkey), 483 483 484 length INT UNSIGNED, # 4GBlimit484 length BIGINT UNSIGNED, # big limit 485 485 486 486 classid TINYINT UNSIGNED NOT NULL, -
trunk/server/lib/MogileFS/Store/MySQL.pm
r1264 r1303 147 147 if ($create && $create =~ /\bbigint\b/i) { 148 148 return $self->{_fid_type} = "BIGINT"; 149 } 150 151 # else, use 32-bit ints for the fid type 152 return $self->{_fid_type} = "INT"; 149 } else { 150 # Old installs might not have raised the fid type size yet. 151 return $self->{_fid_type} = "INT"; 152 } 153 154 # Used to default to 32bit ints, but this always bites people 155 # a few years down the road. So default to 64bit. 156 return $self->{_fid_type} = "BIGINT"; 153 157 } 154 158
