From e51761233e00f416e661fc957be4d99b0d190e73 Mon Sep 17 00:00:00 2001 From: Greg Farnum Date: Wed, 25 Mar 2015 12:03:38 -0700 Subject: [PATCH] ReplicatedPG: fix a signed/unsigned comparison warning This mismatch about whether pool IDs are signed or unsigned is a persistent annoyance. I'm now casting the unsigned down to signed space because apparently the OSD is using negative IDs for temporary object namespaces. Signed-off-by: Greg Farnum --- src/osd/ReplicatedPG.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index 29e864f391113..a718afbea817c 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -8107,7 +8107,7 @@ int ReplicatedPG::find_object_context(const hobject_t& oid, bool map_snapid_to_clone, hobject_t *pmissing) { - assert(oid.pool == info.pgid.pool()); + assert(oid.pool == static_cast(info.pgid.pool())); // want the head? if (oid.snap == CEPH_NOSNAP) { ObjectContextRef obc = get_object_context(oid, can_create); -- 2.39.5