Skip to content

Commit 560dc98

Browse files
committed
common/hobject: fix hobject_t::to_str()
Introduced in: e462f76 Causing the following failures: ``` [ FAILED ] SnapMapperTest.CheckObjectKeyFormat [ FAILED ] SnapMapperTest.CheckRawKeyFormat ``` with the following error: ``` 2024-03-09T17:31:57.117 INFO:teuthology.orchestra.run.smithi060.stdout:Expected equality of these values: 2024-03-09T17:31:57.117 INFO:teuthology.orchestra.run.smithi060.stdout: object_key 2024-03-09T17:31:57.117 INFO:teuthology.orchestra.run.smithi060.stdout: Which is: "OBJ_.1_7FFFFFFFFFFFFFEB.76543210.FFFFFFFFFFFFFFEC.test%uobject..namespace" 2024-03-09T17:31:57.117 INFO:teuthology.orchestra.run.smithi060.stdout: test_object_key 2024-03-09T17:31:57.117 INFO:teuthology.orchestra.run.smithi060.stdout: Which is: "OBJ_.1_7FFFFFFFFFFFFFEB.76543210.ffffffffffffffec.test%uobject..namespace" ``` Signed-off-by: Matan Breizman <[email protected]>
1 parent b420380 commit 560dc98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/hobject.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ string hobject_t::to_str() const
9494
out = fmt::format(FMT_COMPILE("{:016X}.{:08X}.snapdir."), poolid, revhash);
9595
} else {
9696
out = fmt::format(
97-
FMT_COMPILE("{:016X}.{:08X}.{:X}."), poolid, revhash,
97+
FMT_COMPILE("{:016X}.{:08X}.{:x}."), poolid, revhash,
9898
(unsigned long long)snap);
9999
}
100100

0 commit comments

Comments
 (0)