Compare UUIDs consistently
The C code uses memcmp() to compare UUIDs for server selection in replication bootstrap, but in lua there is no way to do it, because UUIDs there are represented as strings. This patch fixes the C implementation so that it will behave as if UUIDs are compared as strings. Fixes #1598
Showing
- src/box/cluster.cc 1 addition, 1 deletionsrc/box/cluster.cc
- src/tt_uuid.c 3 additions, 0 deletionssrc/tt_uuid.c
- src/tt_uuid.h 30 additions, 0 deletionssrc/tt_uuid.h
- test/unit/CMakeLists.txt 5 additions, 0 deletionstest/unit/CMakeLists.txt
- test/unit/uuid.c 67 additions, 0 deletionstest/unit/uuid.c
- test/unit/uuid.result 3 additions, 0 deletionstest/unit/uuid.result
Loading
Please register or sign in to comment