libceph: output primary affinity values on osdmap updates
authorIlya Dryomov <ilya.dryomov@inktank.com>
Wed, 2 Apr 2014 16:34:04 +0000 (20:34 +0400)
committerSage Weil <sage@inktank.com>
Sat, 5 Apr 2014 04:08:28 +0000 (21:08 -0700)
Similar to osd weights, output primary affinity values on incremental
osdmap updates.

Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
net/ceph/osdmap.c

index 408d14826b5e8ab4c34df55b6825d432795fddb0..e632b5a52f5b89cb2e275b64494905cc7ebfc8e7 100644 (file)
@@ -1005,6 +1005,8 @@ static int decode_new_primary_affinity(void **p, void *end,
                ret = set_primary_affinity(map, osd, aff);
                if (ret)
                        return ret;
+
+               pr_info("osd%d primary-affinity 0x%x\n", osd, aff);
        }
 
        return 0;