]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ReplicatedPG: fix a signed/unsigned comparison warning 4182/head
authorGreg Farnum <gfarnum@redhat.com>
Wed, 25 Mar 2015 19:03:38 +0000 (12:03 -0700)
committerGreg Farnum <gfarnum@redhat.com>
Wed, 25 Mar 2015 19:03:38 +0000 (12:03 -0700)
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 <gfarnum@redhat.com>
src/osd/ReplicatedPG.cc

index 29e864f39111360bd5529b9065852487d0ca755c..a718afbea817ccc2879158bac5ddd1bc02e21608 100644 (file)
@@ -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<int64_t>(info.pgid.pool()));
   // want the head?
   if (oid.snap == CEPH_NOSNAP) {
     ObjectContextRef obc = get_object_context(oid, can_create);