Skip to content

Commit 7ca5ee8

Browse files
committed
fix: use ICEBERG_CHECK for uuid size check
1 parent bf7495e commit 7ca5ee8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/iceberg/util/uuid_util.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#include <random>
2626
#include <string>
2727

28+
#include "iceberg/exception.h"
2829
#include "iceberg/result.h"
2930
#include "iceberg/util/int128.h"
3031
#include "iceberg/util/macros.h"
@@ -191,7 +192,7 @@ Result<std::array<uint8_t, 16>> UUIDUtils::FromString(std::string_view str) {
191192

192193
std::string UUIDUtils::ToString(std::span<uint8_t> uuid) {
193194
static const char* hex_chars = "0123456789abcdef";
194-
ICEBERG_DCHECK(uuid.size() == 16, "uuid must be 16 bytes long");
195+
ICEBERG_CHECK(uuid.size() == 16, "uuid must be 16 bytes long");
195196

196197
return std::format(
197198
"{:02x}{:02x}{:02x}{:02x}-{:02x}{:02x}-{:02x}{:02x}-{:02x}{:02x}-{:02x}{:02x}{:02x}"

0 commit comments

Comments
 (0)