mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-19 09:14:27 +08:00
Merge pull request #15 from vigdail/bugfix/atomic_alignment
Proper fields alignment in `InternalUuidGenerator` struct
This commit is contained in:
@@ -35,8 +35,8 @@ type InternalUuidInfo struct {
|
|||||||
|
|
||||||
// InternalUuidGenerator represents internal bundled uuid generator
|
// InternalUuidGenerator represents internal bundled uuid generator
|
||||||
type InternalUuidGenerator struct {
|
type InternalUuidGenerator struct {
|
||||||
uuidServerId uint8
|
|
||||||
uuidSeqNumbers [1 << internalUuidTypeBits]uint64
|
uuidSeqNumbers [1 << internalUuidTypeBits]uint64
|
||||||
|
uuidServerId uint8
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewInternalUuidGenerator returns a new internal uuid generator
|
// NewInternalUuidGenerator returns a new internal uuid generator
|
||||||
|
|||||||
Reference in New Issue
Block a user