• Alex Elder's avatar
    libceph: embed ceph connection structure in mon_client · 67130934
    Alex Elder authored
    A monitor client has a pointer to a ceph connection structure in it.
    This is the only one of the three ceph client types that do it this
    way; the OSD and MDS clients embed the connection into their main
    structures.  There is always exactly one ceph connection for a
    monitor client, so there is no need to allocate it separate from the
    monitor client structure.
    
    So switch the ceph_mon_client structure to embed its
    ceph_connection structure.
    Signed-off-by: default avatarAlex Elder <elder@inktank.com>
    Reviewed-by: default avatarSage Weil <sage@inktank.com>
    67130934
mon_client.c 24.6 KB